Version = 1
; VT400.KEY (for use with a PC-101 keyboard)


; keypad when numlock on
;
N               VK_NUMPAD0              VT_KEYPAD_0
N               VK_NUMPAD1              VT_KEYPAD_1
N               VK_NUMPAD2              VT_KEYPAD_2
N               VK_NUMPAD3              VT_KEYPAD_3
N               VK_NUMPAD4              VT_KEYPAD_4
N               VK_NUMPAD5              VT_KEYPAD_5
N               VK_NUMPAD6              VT_KEYPAD_6
N               VK_NUMPAD7              VT_KEYPAD_7
N               VK_NUMPAD8              VT_KEYPAD_8
N               VK_NUMPAD9              VT_KEYPAD_9
N               VK_DECIMAL              VT_KEYPAD_PERIOD

; keypad when numlock off
;
N               VK_INSERT               VT_KEYPAD_0
N               VK_END                  VT_KEYPAD_1
N               VK_DOWN                 VT_KEYPAD_2
N               VK_NEXT                 VT_KEYPAD_3
N               VK_LEFT                 VT_KEYPAD_4
N               VK_CLEAR                VT_KEYPAD_5
N               VK_RIGHT                VT_KEYPAD_6
N               VK_HOME                 VT_KEYPAD_7
N               VK_UP                   VT_KEYPAD_8
N               VK_PRIOR                VT_KEYPAD_9
N               VK_DELETE               VT_KEYPAD_PERIOD

; other keypad
E               VK_RETURN               VT_KEYPAD_ENTER
N               VK_ADD                  VT_KEYPAD_COMMA
E               VK_ADD                  VT_KEYPAD_COMMA
S               VK_ADD                  VT_KEYPAD_MINUS
SE              VK_ADD                  VT_KEYPAD_MINUS

; non-keypad cursor keys
E               VK_UP                   VT_CURSOR_UP
E               VK_DOWN                 VT_CURSOR_DOWN
E               VK_LEFT                 VT_CURSOR_LEFT
E               VK_RIGHT                VT_CURSOR_RIGHT


; Find   | Insert      | Remove
; Select | Prev Screen | Next Screen
E               VK_INSERT               VT_FIND
E               VK_HOME                 VT_INSERT_HERE
E               VK_PRIOR                VT_REMOVE
E               VK_DELETE               VT_SELECT
E               VK_END                  VT_PREV_SCREEN
E               VK_NEXT                 VT_NEXT_SCREEN


; Function keys
N		VK_F1			"\e[11~"
N		VK_F2			"\e[12~"
N		VK_F3			"\e[13~"
N		VK_F4			"\e[14~"
N		VK_F5			"\e[15~"
N               VK_F6                   VT_F6
N               VK_F7                   VT_F7
N               VK_F8                   VT_F8
N               VK_F9                   VT_F9
N               VK_F10                  VT_F10
N               VK_F11                  VT_F11
N               VK_F12                  VT_F12

A		VK_F1			VT_F11
A		VK_F2			VT_F12
A               VK_F3                   VT_F13
A               VK_F4                   VT_F14
A               VK_F5                   VT_F15
A               VK_F6                   VT_F16
A               VK_F7                   VT_F17
A               VK_F8                   VT_F18
A               VK_F9                   VT_F19
A               VK_F10                  VT_F20
A		VK_F11			"\e[35~"
A		VK_F12			"\e[36~"

S		VK_F1			"\e[11;2~"
S		VK_F2			"\e[12;2~"
S		VK_F3			"\e[13;2~"
S		VK_F4			"\e[14;2~"
S		VK_F5			"\e[15;2~"
S		VK_F6			"\e[17;2~"
S		VK_F7			"\e[18;2~"
S		VK_F8			"\e[19;2~"
S		VK_F9			"\e[20;2~"
S		VK_F10			"\e[21;2~"
S		VK_F11			"\e[23;2~"
S		VK_F12			"\e[24;2~"

AS		VK_F1			"\e[23;2~"
AS		VK_F2			"\e[24;2~"
AS		VK_F3			"\e[25;2~"
AS		VK_F4			"\e[26;2~"
AS		VK_F5			"\e[28;2~"
AS		VK_F6			"\e[29;2~"
AS		VK_F7			"\e[31;2~"
AS		VK_F8			"\e[32;2~"
AS		VK_F9			"\e[33;2~"
AS		VK_F10			"\e[34;2~"
AS		VK_F11			"\e[35;2~"
AS		VK_F12			"\e[36;2~"
