Quote:
>Hello, Please can anyone help with this simple problem. How do you convert a
>scan code into an ASCII character. e.g. Escape is $01, where does #27 come
>from?
That conversion is done by either the BIOS or the KEYB program (if
loaded). As the conversion (not in case of ESC though) is country
dependent one should not try to do it oneself but rely on what the BIOS
functions report. The conversion depends also on various factors, like
state of shift, control and AltGr keys and previous dead keys.
Also in non QWERTY keyboards (like in Germany) there is conversion also
on the scan code part when Alt-Letter is pressed.
Osmo