Sioln has asked for the wisdom of the Perl Monks concerning the following question:
This code catches any key but PgUp, PgDn, func keys - not :( How can I got PgUp with Term::ReadKey ? Please, don't offer me a WIN32::Console. I need do it on term. P.S. OS = Windows 2000. Sioln.use Term::ReadKey; my $key; while (not defined ($key = ReadKey(-1))) { # No key yet } print "Get key '$key'\n"; print ord($key); print "\n"; print chr($key);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Term::ReadKey - How can I get PgUp, PgDn etc ?
by gellyfish (Monsignor) on Aug 17, 2005 at 12:46 UTC | |
by Anonymous Monk on Aug 18, 2005 at 07:12 UTC | |
|
Re: Term::ReadKey - How can I get PgUp, PgDn etc ?
by davidrw (Prior) on Aug 17, 2005 at 12:36 UTC | |
by Anonymous Monk on Aug 17, 2005 at 12:46 UTC |