Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Term::ReadKey under win32

by arc_of_descent (Hermit)
on Apr 07, 2002 at 12:13 UTC ( [id://157266]=note: print w/replies, xml ) Need Help??


in reply to Re: Term::ReadKey under win32
in thread Term::ReadKey under win32

Hi,
Thanx for your suggestion, but it has already been explored by me.
Further more, the Term::ReadKey docs says that
under windows, the ultra-raw mode is the same as the raw mode.
Since u mentioned that you don't have a windows box,
I'd like to know whether that code works on linux terminals.

Thanx

--
arc_of_descent

Replies are listed 'Best First'.
Re^3: Term::ReadKey under win32
by mkirank (Chaplain) on Jul 03, 2007 at 15:29 UTC
    You get a \n value ..Does this help ?
    #!/usr/bin/perl -w use strict; use Term::ReadKey; my $key; ReadMode 0; $key = ReadKey(0); print "Key is ", ord($key), "\n"; ReadMode 0; print "hit enter to exit...\n"; <>;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://157266]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found