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"; <>;