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

Re: Term::ReadKey

by Thelonius (Priest)
on Dec 23, 2003 at 17:45 UTC ( #316661=note: print w/replies, xml ) Need Help??


in reply to Term::ReadKey locks up?

I would try re-installing Term::ReadKey. Also, instead of looping with ReadKey(-1), you could try just calling ReadKey(0) once.

You could also check $! to see if getc returned an unexpected error. Note, however, that $! is not reset to 0 automatically, so you should clear it out beforehand, and that some errors would be expected--what error you would normally get when no character is available may differ by operating system.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2020-10-23 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?