Unbuffered keyboard input???

Discussion in 'Perl' started by Starbase Commander, Sep 10, 2004.

  1. 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.
    Starbase Commander, Sep 10, 2004
    #1
    1. Advertising

  2. Starbase Commander wrote:
    > 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
    Jürgen Exner, Sep 11, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rich

    unbuffered output file

    Rich, Apr 15, 2004, in forum: C++
    Replies:
    5
    Views:
    2,634
    David Harmon
    Apr 16, 2004
  2. michael young

    unbuffered input

    michael young, Feb 5, 2004, in forum: Python
    Replies:
    1
    Views:
    397
    Diez B. Roggisch
    Feb 5, 2004
  3. Replies:
    4
    Views:
    668
    Walter Roberson
    Sep 9, 2005
  4. Jules

    Unbuffered character input

    Jules, May 18, 2008, in forum: C Programming
    Replies:
    2
    Views:
    501
    Spiros Bousbouras
    May 19, 2008
  5. Ken D'Ambrosio

    Unbuffered keyboard input?

    Ken D'Ambrosio, Jun 9, 2009, in forum: Python
    Replies:
    0
    Views:
    321
    Ken D'Ambrosio
    Jun 9, 2009
Loading...

Share This Page