BBS::Perm - a BBS client based on vte
use BBS::Perm qw/Feed IP URI/; my $perm = BBS::Perm->new( perm => { accel => 1 }, config => { file => '.bbs-perm/config.yml' }, ip => { encoding => 'gbk' } );
Perm means Perl + Term here.
Perm
Perl
Term
here is a list BBS::Perm can supply:
1. multiple terminals and quickly switch between them.
2. anti-idle
3. commit stuff from file or even command output directly.
4. browse URIs quickly.
5. show information of IPv4 addresses, thanks to IP::QQWry.
6. build your window layout freely.
7. use your own agent script.
Check out bin/bbs-perm and examples/bbspermrc for example.
Create a new BBS::Perm object.
%opt is some configuration options:
{ config => $config, $uri => $uri, perm => $perm }
All the values of %opt are hashrefs.
For each component, there can be a configuration pair for it. perm => $perm is for BBS::Perm itself, where $perm is as follows:
$window is a Gtk2::Window object, which is your main window.
use accelerator keys or not, default is 1
connect to $sitename.
For each sub component, there's a method with the componnet's last name(lowcase), so you can get each sub component from a BBS::Perm object.
e.g. $self->config is the BBS::Perm::Config object.
return the main window object, which is a Gtk2::Window object.
Gtk2, Regexp::Common, UNIVERSAL::require, UNIVERSAL::moniker, File::Which
None reported.
When a terminal is destroyed, if there is a warning like "gdk_window_invalidate_maybe_recurse: assertion `window != NULL' failed", please update you vte lib to 0.14 or above, then this bug will be gone.
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.