孙海军 > BBS-Perm > BBS::Perm::Plugin::Feed

Download:
BBS-Perm-v0.0.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.0.3   Source  

NAME ^

BBS::Perm::Plugin::Feed - a feed plugin for BBS::Perm

VERSION ^

This document describes BBS::Perm::Command version 0.0.3

SYNOPSIS ^

    use BBS::Perm::Plugin::Feed;
    my $feed = BBS::Perm::Plugin::Feed->new( label => 'Feed' );
    my $feed_widget = $feed->widget;
    my $text = $feed->text;

DESCRIPTION ^

BBS::Perm::Plugin::Feed provides a feed widget for BBS::Perm. If the first letter of user input is ':', the input is seemd as a command, and the command's output will be committed to BBS::Perm::Term's current terminal, else the user input is seemed as a file path, and the file contents will be commited to the terminal.

INTERFACE ^

new( label => $label, widget => $widget )

Create a new BBS::Perm::Plugin::Feed object.

$widget is a Gtk2::HBox object, default is a new one.

$label is a string, name it to what you want, default is '_Feed'.

text

Get the contents of user's input, it's either a command's output or a file's contents.

Caveat: command output and file contents are decoded by your system LANG or LC_ALL setting. So, you'd better update the encoding of your file in accordance with your system settings.

widget

Get our object's widget.

DEPENDENCIES ^

Gtk2, <File::Slurp>, version

INCOMPATIBILITIES ^

None reported.

BUGS AND LIMITATIONS ^

No bugs have been reported.

AUTHOR ^

sunnavy <sunnavy@gmail.com>

LICENCE AND COPYRIGHT ^

Copyright (c) 2007, sunnavy <sunnavy@gmail.com>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.