AnyEvent-ReadLine-Gnu
view release on metacpan or search on metacpan
Readline uses blocking terminal I/O. Under most circumstances, this does
not cause big delays, but ttys have the potential to block programs
indefinitely (e.g. on XOFF).
=item unexpected disk I/O
By default, readline does filename completion on TAB, and reads its
config files.
Tab completion can be disabled by calling C<< $rl->unbind_key (9) >>.
=item tty settings
After readline has been initialised, it will mangle the termios tty
settings. This does not normally affect output very much, but should be
taken into consideration.
=item output intermixing
Your program might wish to print messages (for example, log messages) to
blocking I/O
Readline uses blocking terminal I/O. Under most circumstances, this
does not cause big delays, but ttys have the potential to block
programs indefinitely (e.g. on XOFF).
unexpected disk I/O
By default, readline does filename completion on TAB, and reads its
config files.
Tab completion can be disabled by calling "$rl->unbind_key (9)".
tty settings
After readline has been initialised, it will mangle the termios tty
settings. This does not normally affect output very much, but should
be taken into consideration.
output intermixing
Your program might wish to print messages (for example, log
messages) to STDOUT or STDERR. This will usually cause confusion,
unless readline is hidden with the hide method.
bin/rltelnet view on Meta::CPAN
print "$rbuf\nEOF received, exiting.\n";
exit 0;
} else {
# we assume we never get EAGAIN, sorry
print "$rbuf\nERROR: $!\n";
exit 1;
}
};
#$rl->set_signals;
$rl->unbind_key (9);
$rl->add_defun (telnet_escape => sub {
print "$rbuf\nEscape detected, exiting.\n";
exit 0;
}, 0x1d);
$| = 1;
$quit->recv;
( run in 4.090 seconds using v1.01-cache-2.11-cpan-2398b32b56e )