Professional Documents
Culture Documents
VT 100 Keymap
VT 100 Keymap
VT 100 Keymap
**********************************************************************
* Async Professional: ADTRMVT1.TXT 4.06 *
**********************************************************************
* Terminal: VT100 keyboard map (with VT52 mappings) *
**********************************************************************
* Warning: notice that the parser that reads this file does not emit
* any warnings or errors whatsoever. It will just ignore
* anything it doesn't understand. So, if something is not
* working in the terminal keyboard emulation, check the
* format of this file first.
* Hint: since the keypad Enter key has the same virtual key code as
* the main keyboard Enter key, the emulator will alter the
* virtual key code for the former to $2B (VK_EXECUTE) prior
* to using it.
*=====================================================================
* Virtual key code to virtual key name table
* (taken from the Microsoft documentation; note that some virtual key
* codes are not available on normal keyboards)
\x08 VK_BACK
\x09 VK_TAB
\x0C VK_CLEAR
\x0D VK_RETURN
\x13 VK_PAUSE
\x14 VK_CAPITAL
\x1B VK_ESCAPE
\x20 VK_SPACE
\x21 VK_PRIOR Page Up key
\x22 VK_NEXT Page Down key
\x23 VK_END
\x24 VK_HOME
\x25 VK_LEFT
\x26 VK_UP
\x27 VK_RIGHT
\x28 VK_DOWN
\x29 VK_SELECT
\x2B VK_EXECUTE Numeric keypad Enter key
\x2C VK_SNAPSHOT PrtScrn key
\x2D VK_INSERT
\x2E VK_DELETE
\x2F VK_HELP
\x30 VK_0
\x31 VK_1
\x32 VK_2
\x33 VK_3
\x34 VK_4
\x35 VK_5
\x36 VK_6
\x37 VK_7
\x38 VK_8
\x39 VK_9
\x41 VK_A
\x42 VK_B
\x43 VK_C
\x44 VK_D
\x45 VK_E
\x46 VK_F
\x47 VK_G
\x48 VK_H
\x49 VK_I
\x4A VK_J
\x4B VK_K
\x4C VK_L
\x4D VK_M
\x4E VK_N
\x4F VK_O
\x50 VK_P
\x51 VK_Q
\x52 VK_R
\x53 VK_S
\x54 VK_T
\x55 VK_U
\x56 VK_V
\x57 VK_W
\x58 VK_X
\x59 VK_Y
\x5A VK_Z
\x60 VK_NUMPAD0
\x61 VK_NUMPAD1
\x62 VK_NUMPAD2
\x63 VK_NUMPAD3
\x64 VK_NUMPAD4
\x65 VK_NUMPAD5
\x66 VK_NUMPAD6
\x67 VK_NUMPAD7
\x68 VK_NUMPAD8
\x69 VK_NUMPAD9
\x6A VK_MULTIPLY Numeric keypad *
\x6B VK_ADD Numeric keypad +
\x6C VK_SEPARATOR
\x6D VK_SUBTRACT Numeric keypad -
\x6E VK_DECIMAL Numeric keypad .
\x6F VK_DIVIDE Numeric keypad /
\x70 VK_F1
\x71 VK_F2
\x72 VK_F3
\x73 VK_F4
\x74 VK_F5
\x75 VK_F6
\x76 VK_F7
\x77 VK_F8
\x78 VK_F9
\x79 VK_F10
\x7A VK_F11
\x7B VK_F12
\x7C VK_F13
\x7D VK_F14
\x7E VK_F15
\x7F VK_F16
\x80 VK_F17
\x81 VK_F18
\x82 VK_F19
\x83 VK_F20
\x84 VK_F21
\x85 VK_F22
\x86 VK_F23
\x87 VK_F24
\x90 VK_NUMLOCK
\x91 VK_SCROLL Scroll Lock key
*=====================================================================
* VT key name to escape sequence table
* (taken from DEC documentation)
* The cursor movement keys for ANSI & cursor key mode reset (suffix 1)
DEC_UP1 \e[A
DEC_DOWN1 \e[B
DEC_RIGHT1 \e[C
DEC_LEFT1 \e[D
* The cursor movement keys for ANSI & cursor key mode set (suffix 2)
DEC_UP2 \eOA
DEC_DOWN2 \eOB
DEC_RIGHT2 \eOC
DEC_LEFT2 \eOD
*=====================================================================
* Virtual key name to VT key name table
* (this is just one view--can be altered to suit application)