Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Term::ReadKey under win32

by kart124 (Initiate)
on Jul 03, 2007 at 12:30 UTC ( [id://624661]=note: print w/replies, xml ) Need Help??


in reply to Term::ReadKey under win32

Hey here is something that works on my windows XP box. here is the code: #!/usr/bin/perl -w use Term::ReadKey; print "Gimme a word: ";$|++; while (1) { $|++; ReadMode 5; $key = ReadKey (10); chomp ($key); ReadMode "normal"; printf "*"; $|++; #printf "\nYou said %s, char number %03d\n", #$key, ord $key; last if ($key =~ /\r\n/); } print "\n"; -Thanks kart124

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found