in reply to Escape characters and arrow keys and pp
#!/usr/bin/perl -l use strict; use warnings; use Term::ReadKey; while (1) { print "Enter something:"; ReadMode(4); my $x = <STDIN>; print "Entering..."; sleep 3; ReadMode(0); print "You entered: $x"; last; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Escape characters and arrow keys and pp
by 7cardcha (Novice) on Nov 14, 2011 at 00:43 UTC |