[fpc-pascal]readkey return

Jaakko Tamminen jtamminen at satabaana.net
Mon Sep 24 19:09:44 CEST 2001


Hi

For some reason I get the same code for shift-s (uppercase s) and 
DEL-key when I do following:

var ch : char;
...
repeat until keypressed;
ch := readkey;

case ch of
#83 : del_cur_ch;  {<-- this happens with upcase-S and DEL key ?}



Is there another way to read a pressed key, so that I could see the 
difference between upcase-S and DEL-key?

I'm programming in Linux ascii-console, and using FPC 1.0.4

Jaska.





More information about the fpc-pascal mailing list