; CRiSP.key -- 10/4/96

; Map Keys F1 - F12
N       VK_F1   "\e[M"
N       VK_F2   "\e[N"
N       VK_F3   "\e[O"
N       VK_F4   "\e[P"
N       VK_F5   "\e[Q"
N       VK_F6   "\e[R"
N       VK_F7   "\e[S"
N       VK_F8   "\e[T"
N       VK_F9   "\e[U"
N       VK_F10  "\e[V"
N       VK_F11  "\e[W"
N       VK_F12  "\e[X"

; Map Keys Shift-F1 - Shift-F12
S       VK_F1   "\e[Y"
S       VK_F2   "\e[Z"
S       VK_F3   "\e[a"
S       VK_F4   "\e[b"
S       VK_F5   "\e[c"
S       VK_F6   "\e[d"
S       VK_F7   "\e[e"
S       VK_F8   "\e[f"
S       VK_F9   "\e[g"
S       VK_F10  "\e[h"
S       VK_F11  "\e[i"
S       VK_F12  "\e[j"

; Map Keys Cntrl-F1 - Cntrl-F12
C       VK_F1   "\e[k"
C       VK_F2   "\e[l"
C       VK_F3   "\e[m"
C       VK_F4   "\e[n"
C       VK_F5   "\e[o"
C       VK_F6   "\e[p"
C       VK_F7   "\e[q"
C       VK_F8   "\e[r"
C       VK_F9   "\e[s"
C       VK_F10  "\e[t"
C       VK_F11  "\e[u"
C       VK_F12  "\e[v"

; Map Keys Alt-F1 - Alt-F12
A       VK_F1   "\e[w"
A       VK_F2   "\e[x"
A       VK_F3   "\e[y"
A       VK_F4   "\e[z"
A       VK_F5   "\e[@"
A       VK_F6   "\e[["
A       VK_F7   "\e[\\"
A       VK_F8   "\e[]"
A       VK_F9   "\e[^"
A       VK_F10  "\e[_"
A       VK_F11  "\e[`"
A       VK_F12  "\e[("

; Map Keys Alt-A - Alt-Z
A       VK_A    "\341"
A       VK_B    "\342"
A       VK_C    "\343"
A       VK_D    "\344"
A       VK_E    "\345"
A       VK_F    "\346"
A       VK_G    "\347"
A       VK_H    "\350"
A       VK_I    "\351"
A       VK_J    "\352"
A       VK_K    "\353"
A       VK_L    "\354"
A       VK_M    "\355"
A       VK_N    "\356"
A       VK_O    "\357"
A       VK_P    "\360"
A       VK_Q    "\361"
A       VK_R    "\362"
A       VK_S    "\363"
A       VK_T    "\364"
A       VK_U    "\365"
A       VK_V    "\366"
A       VK_W    "\367"
A       VK_X    "\370"
A       VK_Y    "\371"
A       VK_Z    "\372"

; Map Keys Alt-0 to Alt-9
A       VK_0 "\260"
A       VK_1 "\261"
A       VK_2 "\262"
A       VK_3 "\263"
A       VK_4 "\264"
A       VK_5 "\265"
A       VK_6 "\266"
A       VK_7 "\267"
A       VK_8 "\270"
A       VK_9 "\271"

; Map ctrl(numeric keypad keys)
C       VK_INSERT       "\300"
C       VK_END          "\301"
C       VK_DOWN         "\302"
C       VK_NEXT         "\303"
C       VK_LEFT         "\304"
C       VK_CLEAR        "\305"
C       VK_RIGHT        "\306"
C       VK_HOME         "\307"
C       VK_UP           "\310"
C       VK_PRIOR        "\311"
C       VK_DELETE       "\312"
C       VK_ADD          "\313"
C       VK_SUBTRACT     "\314"
C       VK_MULTIPLY     "\315"
C       VK_DIVIDE       "\316"

; Map Alt(numeric keypad keys)
A       VK_INSERT       "\320"
A       VK_END          "\321"
A       VK_DOWN         "\322"
A       VK_NEXT         "\323"
A       VK_LEFT         "\324"
A       VK_CLEAR        "\325"
A       VK_RIGHT        "\326"
A       VK_HOME         "\327"
A       VK_UP           "\330"
A       VK_PRIOR        "\331"
A       VK_DELETE       "\332"
A       VK_ADD          "\333"
A       VK_SUBTRACT     "\334"
A       VK_MULTIPLY     "\335"
A       VK_DIVIDE       "\336"

; Map Alt(keypad keys)
AE       VK_INSERT       "\320"
AE       VK_END          "\321"
AE       VK_DOWN         "\322"
AE       VK_NEXT         "\323"
AE       VK_LEFT         "\324"
AE       VK_CLEAR        "\325"
AE       VK_RIGHT        "\326"
AE       VK_HOME         "\327"
AE       VK_UP           "\330"
AE       VK_PRIOR        "\331"
AE       VK_DELETE       "\332"
AE       VK_ADD          "\333"
AE       VK_SUBTRACT     "\334"
AE       VK_MULTIPLY     "\335"
AE       VK_DIVIDE       "\336"

; Map Ctrl-keypad (ins, home, pgup)
;                 (del, end,  pgdn)
;
CE       VK_INSERT       "\300"
CE       VK_END          "\301"
CE       VK_DOWN         "\302"
CE       VK_NEXT         "\303"
CE       VK_LEFT         "\304"
CE       VK_CLEAR        "\305"
CE       VK_RIGHT        "\306"
CE       VK_HOME         "\307"
CE       VK_UP           "\310"
CE       VK_PRIOR        "\311"
CE       VK_DELETE       "\312"
CE       VK_ADD          "\313"
CE       VK_SUBTRACT     "\314"
CE       VK_MULTIPLY     "\315"
;
; Map Numpad      (ins, home, pgup)
;                 (del, end,  pgdn)
;
N       VK_INSERT       "\e[L"
N       VK_HOME         "\e[H"
N       VK_PRIOR        "\e[I"
N       VK_DELETE       "\e[K"
N       VK_END          "\e[F"
N       VK_NEXT         "\e[G"
N       VK_CLEAR        "\e[E"
N       VK_ADD          "\e[+"
N       VK_SUBTRACT     "\e[-"
N       VK_MULTIPLY     "\e[*"
N       VK_DIVIDE       "\e[/"
;
; Map Keypad      (ins, home, pgup)
;                 (del, end,  pgdn)
;
E       VK_INSERT       "\e[L"
E       VK_HOME         "\e[H"
E       VK_PRIOR        "\e[I"
E       VK_DELETE       "\e[K"
E       VK_END          "\e[F"
E       VK_NEXT         "\e[G"
E       VK_CLEAR        "\e[E"

; Map cursor keys
;
CE      VK_DOWN         "\302"
CE      VK_LEFT         "\304"
CE      VK_RIGHT        "\306"
CE      VK_UP           "\310"


N       VK_BACK         "\010"
C       VK_BACK         "\177"
