home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / nfsrc21.zip / DFKEY.H < prev    next >
Text File  |  1991-06-14  |  5KB  |  151 lines

  1. /*
  2.  * File......: DFKEY.H
  3.  * Author....: Mike Taylor
  4.  * Date......: $Date:   14 Jun 1991 19:55:20  $
  5.  * Revision..: $Revision:   1.1  $
  6.  * Log file..: $Logfile:   E:/nanfor/src/dfkey.h_v  $
  7.  * 
  8.  * This is an original work by Mike Taylor and is placed in the
  9.  * public domain.
  10.  *
  11.  * Modification history:
  12.  * ---------------------
  13.  *
  14.  * $Log:   E:/nanfor/src/dfkey.h_v  $
  15.  * 
  16.  *    Rev 1.1   14 Jun 1991 19:55:20   GLENN
  17.  * Minor edit to file header
  18.  * 
  19.  *    Rev 1.0   01 Apr 1991 01:03:04   GLENN
  20.  * Nanforum Toolkit
  21.  * 
  22.  *
  23.  */
  24.  
  25.  
  26. /* key constants for d_keyin() routine.                          */
  27. /*  some of the values allow for Wordstar-like codes to work for */
  28. /*  cursor movement.  for example ctrl-x is 0x18 and it's mapped */
  29. /*  to the down arrow.                                           */
  30.  
  31. #define UP    5       /* Ctrl-e */
  32. #define DN    24      /* Ctrl-x */
  33. #define LFT   19      /* Ctrl-s */
  34. #define RGT   4       /* Ctrl-d */
  35. #define CLFT  1       /* Ctrl-a */
  36. #define CRGT  6       /* Ctrl-f */
  37. #define HOME  210
  38. #define ENND  211
  39. #define PGUP  18      /* Ctrl-r */
  40. #define PGDN  3       /* Ctrl-c */
  41. #define INS   22      /* Ctrl-v */
  42. #define DEL   7       /* Ctrl-g */
  43. #define ESC   27      /* escape */
  44. #define RET   13      /* return */
  45. #define TAB   9       /* horiz. tab */
  46. #define BKSP  8       /* backspace  */
  47. #define CTRLA 1       /* Ctrl-a */
  48. #define CTRLB 2       /* Ctrl-b */
  49. #define CTRLC 3       /* Ctrl-c */
  50. #define CTRLD 4       /* Ctrl-d */
  51. #define CTRLE 5       /* Ctrl-e */
  52. #define CTRLF 6       /* Ctrl-f */
  53. #define CTRLG 7       /* Ctrl-g */
  54. #define CTRLH 8       /* Ctrl-h */
  55. #define CTRLI 9       /* Ctrl-i */
  56. #define CTRLJ 10      /* Ctrl-j */
  57. #define CTRLK 11      /* Ctrl-k */
  58. #define CTRLL 12      /* Ctrl-l */
  59. #define CTRLM 13      /* Ctrl-m */
  60. #define CTRLN 14      /* Ctrl-n */
  61. #define CTRLO 15      /* Ctrl-o */
  62. #define CTRLP 16      /* Ctrl-p */
  63. #define CTRLQ 17      /* Ctrl-q */
  64. #define CTRLR 18      /* Ctrl-r */
  65. #define CTRLS 19      /* Ctrl-s */
  66. #define CTRLT 20      /* Ctrl-t */
  67. #define CTRLU 21      /* Ctrl-u */
  68. #define CTRLV 22      /* Ctrl-v */
  69. #define CTRLW 23      /* Ctrl-w */
  70. #define CTRLX 24      /* Ctrl-x */
  71. #define CTRLY 25      /* Ctrl-y */
  72. #define CTRLZ 26      /* Ctrl-z */
  73.  
  74. /* the following values are mapped into > 128 so that the cannot */
  75. /*  be mistaken for an actual keypress, keyin() performs all of  */
  76. /*  the mapping.                                                 */
  77.  
  78. #define F0     140
  79. #define F1     141
  80. #define F2     142
  81. #define F3     143
  82. #define F4     144
  83. #define F5     145
  84. #define F6     146
  85. #define F7     147
  86. #define F8     148
  87. #define F9     149
  88. #define AF0    150    /* alt-f0   */
  89. #define AF1    151    /* alt-f1   */
  90. #define AF2    152    /* alt-f2   */
  91. #define AF3    153    /* alt-f3   */
  92. #define AF4    154    /* alt-f4   */
  93. #define AF5    155    /* alt-f5   */
  94. #define AF6    156    /* alt-f6   */
  95. #define AF7    157    /* alt-f7   */
  96. #define AF8    158    /* alt-f8   */
  97. #define AF9    159    /* alt-f9   */
  98. #define CF1    160    /* ctrl-f1  */
  99. #define CF2    161    /* ctrl-f2  */
  100. #define CF3    162    /* ctrl-f3  */
  101. #define CF4    163    /* ctrl-f4  */
  102. #define CF5    164    /* ctrl-f5  */
  103. #define CF6    165    /* ctrl-f6  */
  104. #define CF7    166    /* ctrl-f7  */
  105. #define CF8    167    /* ctrl-f8  */
  106. #define CF9    168    /* ctrl-f9  */
  107. #define CF0    169    /* ctrl-f0  */
  108. #define CENND  170    /* ctrl-end  */
  109. #define CHOME  171    /* ctrl-home */
  110. #define CPGDN  172    /* ctrl-page up     */
  111. #define CPGUP  132    /* ctrl-page down   */
  112. #define CINS   175    /* ctrl-insert key  */
  113. #define ALT1   176    /* alt-1 not keypad */
  114. #define ALT2   177    /* alt-2  "  */
  115. #define ALT3   178    /* alt-3  "  */
  116. #define ALT4   179    /* alt-4  "  */
  117. #define ALT5   180    /* alt-5  "  */
  118. #define ALT6   181    /* alt-6  "  */
  119. #define ALT7   182    /* alt-7  "  */
  120. #define ALT8   183    /* alt-8  "  */
  121. #define ALT9   128    /* alt-9  "  */
  122. #define ALT0   129    /* alt-0  "  */
  123. #define ADASH  130    /* alt-dash  */
  124. #define AEQL   131    /* alt-equal */
  125. #define ALTA   184    /* alt-a  */
  126. #define ALTB   185    /* alt-b  */
  127. #define ALTC   186    /* alt-c  */
  128. #define ALTD   187    /* alt-d  */
  129. #define ALTE   188    /* alt-e  */
  130. #define ALTF   189    /* alt-f  */
  131. #define ALTG   190    /* alt-g  */
  132. #define ALTH   191    /* alt-h  */
  133. #define ALTI   192    /* alt-i  */
  134. #define ALTJ   193    /* alt-j  */
  135. #define ALTK   194    /* alt-k  */
  136. #define ALTL   195    /* alt-l  */
  137. #define ALTM   196    /* alt-m  */
  138. #define ALTN   197    /* alt-n  */
  139. #define ALTO   198    /* alt-o  */
  140. #define ALTP   199    /* alt-p  */
  141. #define ALTQ   200    /* alt-q  */
  142. #define ALTR   201    /* alt-r  */
  143. #define ALTS   202    /* alt-s  */
  144. #define ALTT   203    /* alt-t  */
  145. #define ALTU   204    /* alt-u  */
  146. #define ALTV   205    /* alt-v  */
  147. #define ALTW   206    /* alt-w  */
  148. #define ALTX   207    /* alt-x  */
  149. #define ALTY   208    /* alt-y  */
  150. #define ALTZ   209    /* alt-z  */
  151.