IO::Stty

Change and print terminal line settings
Download

IO::Stty Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Todd Rinaldo
  • Publisher web site:
  • http://search.cpan.org/~toddr/

IO::Stty Tags


IO::Stty Description

Change and print terminal line settings IO::Stty is the PERL POSIX compliant stty.This has not been tailored to the IO::File stuff but will work with it as indicated. Before you go futzing with term parameters it's a good idea to grab the current settings and restore them when you finish.stty accepts the following non-option arguments that change aspects of the terminal line operation. A `' before a capability means that it can be turned off by preceding it with a `-'.SYNOPSIS # calling the script directly stty.pl stty.pl {-a,-g,-v,--version} # Calling Stty module use IO::Stty; IO::Stty::stty(\*TTYHANDLE, @modes); use IO::Stty; $old_mode=IO::Stty::stty(\*STDIN,'-g'); # Turn off echoing. IO::Stty::stty(\*STDIN,'-echo'); # Do whatever.. grab input maybe? $read_password = ; # Now restore the old mode. IO::Stty::stty(\*STDIN,$old_mode); # What settings do we have anyway? print IO::Stty::stty(\*STDIN,'-a'); Requirements: · Perl


IO::Stty Related Software