in reply to Reading all nonblocking keystrokes in Win2000

Look up ASCII, and change print $c; to  print ord($c);. The delete key doesn't have a character map (which is why you get a space) your program will need to compair with the delete character, not the space character. Also look at what pressing return does ; )

Replies are listed 'Best First'.
Re: Reading all nonblocking keystrokes in Win2000
by Washizu (Scribe) on Nov 16, 2001 at 01:38 UTC

    Good thinking, but unfortunatly I tried that already.

    When I use 'print ord $c' it prints 0 for the arrow keys and insert, delete, home, etc. It prints the actual codes for ENTER and SPACE, but I'd like to have everything.

    -----------------------------------
    Washizu
    The best offense is a good offense.