Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Term::ReadKey under win32

by mkirank (Chaplain)
on Jul 03, 2007 at 15:29 UTC ( #624715=note: print w/ replies, xml ) Need Help??


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

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


Comment on Re^3: Term::ReadKey under win32
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2014-10-30 18:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls