Appendices 351
VT220 terminal emulationTable D.8 lists the keystroke mapping (encoding) for VT220 emulation.
Table D.8: VT220 Encoding
VT220 Keyboard PC Keyboard VT220 Keyb oard B yte Sequence
Delete Delete 0x7F
Left Arrow Left Arrow Esc [ D
Right Arrow Right Arrow Esc [ C
Up Arrow Up Arrow Esc [ A
Down Arrow Down Arrow Esc [ B
Keypad / Keypad / /
Keypad * Keypad * *
Keypad - Keypad - -
Keypad + Keypad + +
Keypad . Keypad . .
Keypad 0..9 Keypad 0..9 0..9
F1 F1 Esc O P
F2 F2 Esc O Q
F3 F3 Esc O R
F4 F4 Esc O S
F6 F6 Esc [ 1 7 ~
F7 F7 Esc [ 1 8 ~
F8 F8 Esc [ 1 9 ~
F9 F9 Esc [ 2 0 ~
F10 F 10 Esc [ 2 1 ~
F11 F 11 Esc [ 2 3 ~
F12 F 12 Esc [ 2 4 ~
F13 Ctrl - F5 Esc [ 2 5 ~
F14 Ctrl - F6 Esc [ 2 6 ~