BBS::Perm::Term - a multi-terminals component based on Vte for BBS::Perm
use BBS::Perm::Term; my $term = BBS::Perm::Term->new;
BBS::Perm::Term is a Gnome2::Vte based terminal, mainly for BBS::Perm. In fact, it's a transperant wrapper to Gnome2::Vte.
create a new BBS::Perm::Term object.
$widget is a Gtk2::HBox or Gtk2::VBox object, which will be the container of our terminals, default is a new Gtk2::HBox object.
$agent designate our agent script, default is 'bbs-perm-agent'.
$agent will be called as "$agent $file $sitename", where $file and $sitename have the same meanings as BBS::Perm::Config's, so our script can get enough information by these two arguments.
return the current terminal, which is a Gnome2::Vte::Terminal object, so you can do anything a Gnome2::Vte::Terminal object can do, ;-)
initiate the terminal to be our `current' terminal. $conf is the same as the return value of BBS::Perm::Config object's setting method.
let the current terminal connect to the BBS server.
our object could have many Gnome2::Vte::Terminal objects, this method help us switch among them, choosing some as the current terminal. -1 for left, 1 for right.
get current terminal's title.
get current terminal's encoding.
get current terminal's text. ( just plain text, not a colorful one, ;-)
when an agent script exited, this method will be call, for cleaning, of cause.
sunnavy <sunnavy@gmail.com>
<sunnavy@gmail.com>
Copyright (c) 2007-2011, sunnavy <sunnavy@gmail.com>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install BBS::Perm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BBS::Perm
CPAN shell
perl -MCPAN -e shell install BBS::Perm
For more information on module installation, please visit the detailed CPAN module installation guide.