Why bother with ESC-codes? isn't 1B 26 xx long-winded boring?
my key-decoder can produce 256 single byte "almost normal ASCII"
within my Set1 (simple lookup translate):
20..7F as defined by ASCII and 80 for the EURO-sign
07,08,09,0F,0A,0D for ASCII-defined controls BELL,BS,TAB,BTAB,LF,CR
other 00..1F as CTRL @,A..Z,[|] (1B fore ESC-key)
81..8c for F1..F12 8d,8e,8f for num-lock caps-lock scroll-lock
90..99 all cursor keys 9a.9b,9c,9d for prtscrn,sysreq,pause,break
A0...Af all from the numblock (easy transform into Numbers by AND)
B1...BC ALT F1..F12
C1...CC CTL F1..F12
D0...D3 windoze keys
SHIFT ALT and CONTROL keys don't produce bytes, they just set flags.
and all not listed above got a special meaning in my OS.
my other LUTs can produce language specific bytes or game patterns.
__
wolfgang