2020-02-08 04:46:43 +00:00
|
|
|
An Exploration of the Keys
|
|
|
|
==========================
|
|
|
|
|
|
|
|
ESC: 1b
|
|
|
|
|
|
|
|
Function keys: 1b followed by
|
|
|
|
|
|
|
|
F1 F2 F3 F4 F5 F6 F7 F8
|
2020-02-10 06:58:10 +00:00
|
|
|
4f O 4F O 4F O 4F O 5B 5B 5B 5B
|
2020-02-08 04:46:43 +00:00
|
|
|
50 P 51 Q 52 R 54 S 31 1 31 1 31 1 31 1
|
|
|
|
35 5 37 7 38 8 39 9
|
2020-02-10 06:58:10 +00:00
|
|
|
7E ~ 7E ~ 7E ~ 7E ~
|
2020-02-08 04:46:43 +00:00
|
|
|
|
|
|
|
F9 F10 F11 F12
|
2020-02-10 06:58:10 +00:00
|
|
|
5B [ 5B [ 5B [ 5B [
|
2020-02-08 04:46:43 +00:00
|
|
|
32 2 32 2 32 2 32 2
|
|
|
|
30 0 31 1 33 3 34 4
|
2020-02-10 06:58:10 +00:00
|
|
|
7E ~ 7E ~ 7E ~ 7E ~
|
2020-02-08 04:46:43 +00:00
|
|
|
|
2020-02-10 06:58:10 +00:00
|
|
|
DEL 7F - BUT IT SHOULD BE A 4-BYTE ESCAPE SEQUENCE?
|
|
|
|
BKSP 7F
|
2020-02-08 04:46:43 +00:00
|
|
|
|
|
|
|
Arrow keys: 1b followed by
|
|
|
|
UP DN LF RT
|
|
|
|
5b [ 5b [ 5b [ 5b [
|
|
|
|
41 A 42 B 44 D 43 C
|
|
|
|
|
|
|
|
Other keys: 1b followed by
|
|
|
|
|
|
|
|
HOME END PGUP PGDN INS
|
|
|
|
5b [ 5b [ 5b [ 5b [ 5b [
|
|
|
|
48 H 46 F 35 5 36 6 32 2
|
|
|
|
7e ~ 7e ~ 7e ~
|
|
|
|
|
|
|
|
|
|
|
|
Notes: any time you see escape, you must process another key to figure
|
|
|
|
out what to do.
|