home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / vim-2.0.lha / Vim-2.0 / src / keymap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-15  |  2.1 KB  |  75 lines

  1. /* vi:ts=4:sw=4
  2.  *
  3.  * VIM - Vi IMproved
  4.  *
  5.  * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  6.  *                            Tim Thompson            twitch!tjt
  7.  *                            Tony Andrews            onecom!wldrdg!tony 
  8.  *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  9.  */
  10.  
  11. /*
  12.  * Keycode definitions for special keys
  13.  *
  14.  * On systems that have any of these keys, the routine 'inchar' in the
  15.  * machine-dependent code should return one of the codes here.
  16.  */
  17.  
  18. /*
  19.  * On MSDOS we use other codes, because the codes 0x80 - 0xb0 are used
  20.  * for special characters. If this is changed also change the numbers in
  21.  * term.h and main.c.
  22.  */
  23. #ifdef MSDOS
  24. # define K_OFF 0x30
  25. #else
  26. # define K_OFF 0x00
  27. #endif
  28.  
  29. #define K_CCIRCM        0x1e    /* control circumflex */
  30.  
  31. /*
  32.  * careful: the next entries must be in the same order as the termcap strings
  33.  * in term.h and the numbers must be consecutive (used by inchar()).
  34.  */
  35. #define K_UARROW        (K_OFF + 0x80)
  36. #define K_DARROW        (K_OFF + 0x81)
  37. #define K_LARROW        (K_OFF + 0x82)
  38. #define K_RARROW        (K_OFF + 0x83)
  39. #define K_SUARROW        (K_OFF + 0x84)
  40. #define K_SDARROW        (K_OFF + 0x85)
  41. #define K_SLARROW        (K_OFF + 0x86)
  42. #define K_SRARROW        (K_OFF + 0x87)
  43.  
  44. #define K_F1            (K_OFF + 0x88)    /* function keys */
  45. #define K_F2            (K_OFF + 0x89)
  46. #define K_F3            (K_OFF + 0x8a)
  47. #define K_F4            (K_OFF + 0x8b)
  48. #define K_F5            (K_OFF + 0x8c)
  49. #define K_F6            (K_OFF + 0x8d)
  50. #define K_F7            (K_OFF + 0x8e)
  51. #define K_F8            (K_OFF + 0x8f)
  52. #define K_F9            (K_OFF + 0x90)
  53. #define K_F10            (K_OFF + 0x91)
  54.  
  55. #define K_SF1            (K_OFF + 0x92)    /* shifted function keys */
  56. #define K_SF2            (K_OFF + 0x93)
  57. #define K_SF3            (K_OFF + 0x94)
  58. #define K_SF4            (K_OFF + 0x95)
  59. #define K_SF5            (K_OFF + 0x96)
  60. #define K_SF6            (K_OFF + 0x97)
  61. #define K_SF7            (K_OFF + 0x98)
  62. #define K_SF8            (K_OFF + 0x99)
  63. #define K_SF9            (K_OFF + 0x9a)
  64. #define K_SF10            (K_OFF + 0x9b)
  65.  
  66. #define K_HELP            (K_OFF + 0x9c)
  67. #define K_UNDO            (K_OFF + 0x9d)
  68.  
  69. /*
  70.  * NULs cannot be in the input string, therefore CTRL-@ is replaced by K_ZERO.
  71.  * K_NUL is used for MSDOS extended keys (same value used in term.h).
  72.  */
  73. #define K_NUL            (K_OFF + 0x9e)    /* for MSDOS: special key follows */
  74. #define K_ZERO            (K_OFF + 0x9f)    /* replaces ^@ */
  75.