IO::Tty. IO::Stty.
I don't see what this really adds above and beyond the core POSIX module
and those two, but if you really like your "combined" syntax I guess
that's something.
Austin
Paul LeoNerd Evans wrote:
I've been getting annoyed lately at the awkward and insane steps
required to go through just to get a serial device, or hack around at
the termios flags of STDIN/etc... To this end, I've written the
following module, called IO::Termios.
Some future plans involve:
* Adding more getflag_*/setflag_* convenience wrappers
* Automatically upgrading STDIN/STDOUT/STDERR if appropriate, given a
flag. Would allow such convenience as:
use IO::Termios -upgrade;
STDOUT->autoflush( 1 );
print "Password: ";
STDIN->setflag_echo( 0 );
my $password = <STDIN>;
STDIN->setflag_echo( 1 );
* Some sort of combined baud/csize/parity/stop getting/setting method
$term->setline( "38400,8,n,1" );
I'd appreciate comments on the general approach; if anyone thinks it
might be useful, or if I've missed something totally nonobvious on
CPAN/etc... before I upload it.