1 /* BEGIN INCLUDE FILE: keydefs.h */
  2 
  3 /* HISTORY COMMENTS:
  4   1) change(86-09-01,Lee), approve(87-07-13,MCR7580), audit(87-07-13,Leskiw),
  5      install(87-08-07,MR12.1-1072):
  6      Created.
  7                                                    END HISTORY COMMENTS */
  8 
  9 /* FUNCTION:
 10     This include file assigns a unique value to each key sequence
 11 on the PC keyboard.  A key sequence consists of a single key press
 12 or a key press while the control or the ALT key is depressed.
 13 For keys not explicitly assigned a value, the ASCII value for that
 14 key character is assumed.  Some keys are represented as extended
 15 ASCII codes (such as the BREAK key, function keys, arrow keys, etc.).
 16 These generate a two character sequence from the keyboard with the
 17 first character being a NULL byte.  The value assigned for extended
 18 ASCII characters is the value of the second byte plus 256.
 19 
 20 */
 21 
 22 
 23 /* define values for functions keys F1 to F10 */
 24 
 25 #define F1                      315
 26 #define F2                      316
 27 #define F3                      317
 28 #define F4                      318
 29 #define F5                      319
 30 #define F6                      320
 31 #define F7                      321
 32 #define F8                      322
 33 #define F9                      323
 34 #define F10                     324
 35 
 36 /* define values for function keys F1 to F10 while the CTRL key is depressed */
 37 
 38 #define CTRL_F1                 350
 39 #define CTRL_F2                 351
 40 #define CTRL_F3                 352
 41 #define CTRL_F4                 353
 42 #define CTRL_F5                 354
 43 #define CTRL_F6                 355
 44 #define CTRL_F7                 356
 45 #define CTRL_F8                 357
 46 #define CTRL_F9                 358
 47 #define CTRL_F10                359
 48 
 49 /* define values for functions keys F1 to F10 while the ALT key is depressed */
 50 
 51 #define ALT_F1                  360
 52 #define ALT_F2                  361
 53 #define ALT_F3                  362
 54 #define ALT_F4                  363
 55 #define ALT_F5                  364
 56 #define ALT_F6                  365
 57 #define ALT_F7                  366
 58 #define ALT_F8                  367
 59 #define ALT_F9                  368
 60 #define ALT_F10                 369
 61 
 62 /* define values for miscellaneous extended ASCII characters */
 63 
 64 #define HOME_KEY                327   /* Home key */
 65 #define UP_ARROW_KEY            328   /* the up arrow key */
 66 #define PAGE_UP_KEY             329   /* the page up key */
 67 #define LEFT_ARROW_KEY          331   /* the left arrow key */
 68 #define RIGHT_ARROW_KEY         333   /* the right arrow key */
 69 #define END_KEY                 335   /* the End key */
 70 #define DOWN_ARROW_KEY          336   /* the down arrow key */
 71 #define PAGE_DOWN_KEY           337   /* the PgDn key */
 72 #define INS_KEY                 338   /* the Ins key */
 73 #define DEL_KEY                 339   /* the Del key */
 74 
 75 /* define values for characters with the CTRL key depressed */
 76 
 77 #define CTRL_A                  1     /* CTRL A */
 78 #define CTRL_B                  2     /* CTRL B */
 79 #define CTRL_C                  3     /* CTRL C */
 80 #define CTRL_D                  4     /* etc ... */
 81 #define CTRL_E                  5
 82 #define CTRL_F                  6
 83 #define CTRL_G                  7
 84 #define CTRL_H                  8
 85 #define CTRL_I                  9
 86 #define CTRL_J                  10
 87 #define CTRL_K                  11
 88 #define CTRL_L                  12
 89 #define CTRL_M                  13
 90 #define CTRL_N                  14
 91 #define CTRL_O                  15
 92 #define CTRL_P                  16
 93 #define CTRL_Q                  17
 94 #define CTRL_R                  18
 95 #define CTRL_S                  19
 96 #define CTRL_T                  20
 97 #define CTRL_U                  21
 98 #define CTRL_V                  22
 99 #define CTRL_W                  23
100 #define CTRL_X                  24
101 #define CTRL_Y                  25
102 #define CTRL_Z                  26    /* CTRL Z */
103 #define CTRL_RSB                29    /* CTRL ]  (control right square */
104                                       /*          bracket)             */
105 
106 /* define ALIASES for commonly used keys */
107 
108 #define BELL                    7     /* same as CTRL G */
109 #define BS                      8     /* same as CTRL H */
110 #define TAB                     9     /* same as CTRL I */
111 #define LF                      10    /* same as CTRL J */
112 #define CR                      13    /* same as CTRL M */
113 #define ESC                     27    /* the Esc key */
114 #define SPACE                   32    /* the space bar */
115 
116 /* END INCLUDE FILE: keydefs.h */
117 ^Z