summaryrefslogtreecommitdiff
path: root/devel/p5-IO-Stty
diff options
context:
space:
mode:
authorcjep <cjep@pkgsrc.org>2004-01-11 12:42:40 +0000
committercjep <cjep@pkgsrc.org>2004-01-11 12:42:40 +0000
commit3233abb3678081e03e1b66e5f8be6f70681265a9 (patch)
treed3d4e303b1740b3df6c0d227b46a59fc688e5673 /devel/p5-IO-Stty
parent942f009dda0574610a2d82132d4a6b26a259742e (diff)
downloadpkgsrc-3233abb3678081e03e1b66e5f8be6f70681265a9.tar.gz
Shorten.
Diffstat (limited to 'devel/p5-IO-Stty')
-rw-r--r--devel/p5-IO-Stty/DESCR28
1 files changed, 2 insertions, 26 deletions
diff --git a/devel/p5-IO-Stty/DESCR b/devel/p5-IO-Stty/DESCR
index 54de771d4a7..3699ade042b 100644
--- a/devel/p5-IO-Stty/DESCR
+++ b/devel/p5-IO-Stty/DESCR
@@ -1,34 +1,10 @@
-
- The two perl items in this package are an stty shell script and a
+The two perl items in this package are an stty shell script and a
module for setting terminal parameters. to use the Stty.pm module stuff it in
your $PERL_LIB_DIR/site_perl/IO directory. In your scripts do:
use IO::Stty;
IO::Stty::stty(\*TTYHANDLE, @modes);
- This has not been tailored to the IO::File stuff but will work with it as
+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.
-
- Example:
-
- 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');
-
-
- This is use at your own risk software. Do anything you want with it except
-blame me for it blowing up your machine because it's full of bugs.
- The file stty.txt indicates what functions are supported. Standard POSIX
-stuff. If any of the settings are wrong and you actually know what some of
-these extremely arcane settings (like what 'sane' should be in POSIX land)
-really should be, let me know.
-
-11-08-97 Austin Schutz<tex@habit.com>