BBS-Perm
view release on metacpan or search on metacpan
lib/BBS/Perm/Term.pm view on Meta::CPAN
$conf->{opacity} *= 65535 if $conf->{opacity} <= 1;
$term->set_opacity($conf->{opacity});
}
if ( defined $conf->{mouse_autohide} ) {
$term->set_mouse_autohide( $conf->{mouse_autohide} );
}
my $timeout = defined $conf->{timeout} ? $conf->{timeout} : 60;
if ($timeout) {
$term->{timer} = Glib::Timeout->add( 1000 * $timeout,
sub { $term->feed_child( chr 0 ); return TRUE; }, $term );
}
}
sub clean { # called when child exited
my $self = shift;
my ( $current, $new_pos );
$new_pos = $current = $self->{current};
if ( @{ $self->{terms} } > 1 ) {
if ( $current == @{ $self->{terms} } - 1 ) {
( run in 1.214 second using v1.01-cache-2.11-cpan-49f99fa48dc )