Unbuffered keyboard input???

S

Starbase Commander

My Perl books don't explain how to receive single keystrokes in
real time, like the basic statement "inkey$" or C statement "getc" -
probably because I assume it requires a specific system call depending on
the OS.

It is tough to google using "keyboard" in the search string. I am still
going through the fifty thousand hits:)

With Linux, can someone clue me in as to what can be used to read the
keyboard as the keys are typed (with Perl)?

Thanks
SC onboard.
 
J

Jürgen Exner

Starbase said:
My Perl books don't explain how to receive single keystrokes in
real time, like the basic statement "inkey$" or C statement "getc" -
probably because I assume it requires a specific system call
depending on the OS.

perldoc -q single

"How can I read a single character from a file? From the keyboard?"

jue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top