Post by ***@yahoo.com.au [hercules-os380]Why is there an ASCII code (0x7f) for "DEL"
but there is no code for "INSERT"? And
page up and page down too.
If by ASCII you mean IA7, well it was a
teletype code. Those actions are not
meaningful on a TTY with a roll of paper...
I see. They are also not meaningful in a
text file. But they are keys on my keyboard.
I am wondering whether character codes
greater than decimal 127 should be
repurposed to encode PgUp, Insert, F1 etc,
or whether they should generate ANSI
escape sequences which is what I
currently see happening when I use
telnet. I notice that the "DEL" key has an
ANSI sequence as well, it doesn't
generate x'7f'. I also notice that there is
a full 24 function keys, using shift.
I don't see the codes listed here though:
https://en.wikipedia.org/wiki/ANSI_escape_code
e.g. page up I am seeing as ESC [ 5 ~
and page down is ESC [ 6 ~
An interesting code is 5 on the numeric
keypad when num lock is off, which is
ESC [ G
I don't know what that means. I know
what the other keys are, e.g. "8" is
cursor up.
.. nor being an American code are there
ASCII codes for £ or ⬠which are pretty
useful these days...
Those characters are not on a US ASCII
keyboard and I believe should instead
be written as GBP$100 and EUR$100.
BFN. Paul.