Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Answer: is ther any way to get only one char from stdin

( #63681=categorized answer: print w/ replies, xml ) Need Help??

Q&A > input and output > How can I get just one character from STDIN? contributed by AgentM

use Curses; ...#initialization stuff my $char=getch();
Read more on Curses in your local man pages for more terminal manipulation goodness.

Comment on Answer: is ther any way to get only one char from stdin
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2014-10-21 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (109 votes), past polls