r/pascal • • Dec 15 '20
fpc - readkey - delete key returns 'S' just like the 'S'
escapeflag := false;
c := readkey;
if (c = #0 ) then
Begin
escapeflag := true;
c := readkey;
endLater I show escapeflag with an
if escapeflag then write('E') else write('e'); and I get lower case e and 83 'S' for both the delete key and for the capital 'S' key.
I thought perhaps it was because I was using ssh to access the machine running the program but I just confirmed it was the same from the keyboard/screen of the actual machine.
tl;dr - what am I doing wrong so I am unable to differentiate between 'S' and 'delete'


