Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by AgentM (Curate)
on Mar 12, 2001 at 02:56 UTC ( #63681=categorized answer: print w/replies, xml ) Need Help??

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Dumu]: Hello @jedikaiti & other Monks!
[Dumu]: Can't rememeber how to correctly tag other monks in chat
[Dumu]: hello jedikaiti

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2017-11-20 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (290 votes). Check out past polls.

    Notices?