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 ; )
Comment on Re: Reading all nonblocking keystrokes in Win2000
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.