home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / sedit281.zip / keynames.h < prev    next >
Text File  |  1996-03-18  |  8KB  |  228 lines

  1.  
  2. /* file keynames.h */
  3.  
  4. /* the following is a list of two byte key codes that the editor understands. */
  5. /* Note that in addition the control codes are defined as (256 * '^' + 'A') for */
  6. /* CTRL A and the alt key codes are defined as (256 * '%' + 'A') for ALT A. */
  7.  
  8. #define FUNC1 (256 * '$' + '1')
  9. #define FUNC2 (256 * '$' + '2')
  10. #define FUNC3 (256 * '$' + '3')
  11. #define FUNC4 (256 * '$' + '4')
  12. #define FUNC5 (256 * '$' + '5')
  13. #define FUNC6 (256 * '$' + '6')
  14. #define FUNC7 (256 * '$' + '7')
  15. #define FUNC8 (256 * '$' + '8')
  16. #define FUNC9 (256 * '$' + '9')
  17. #define FUNC10 (256 * '$' + ':')
  18. #define FUNC11 (256 * '$' + ';')
  19. #define FUNC12 (256 * '$' + '<')
  20. #define SFUNC1 (256 * '$' + '=')
  21. #define SFUNC2 (256 * '$' + '>')
  22. #define SFUNC3 (256 * '$' + '?')
  23. #define SFUNC4 (256 * '$' + '@')
  24. #define SFUNC5 (256 * '$' + 'A')
  25. #define SFUNC6 (256 * '$' + 'B')
  26. #define SFUNC7 (256 * '$' + 'C')
  27. #define SFUNC8 (256 * '$' + 'D')
  28. #define SFUNC9 (256 * '$' + 'E')
  29. #define SFUNC10 (256 * '$' + 'F')
  30. #define SFUNC11 (256 * '$' + 'G')
  31. #define SFUNC12 (256 * '$' + 'H')
  32. #define CFUNC1 (256 * '$' + 'I')
  33. #define CFUNC2 (256 * '$' + 'J')
  34. #define CFUNC3 (256 * '$' + 'K')
  35. #define CFUNC4 (256 * '$' + 'L')
  36. #define CFUNC5 (256 * '$' + 'M')
  37. #define CFUNC6 (256 * '$' + 'N')
  38. #define CFUNC7 (256 * '$' + 'O')
  39. #define CFUNC8 (256 * '$' + 'P')
  40. #define CFUNC9 (256 * '$' + 'Q')
  41. #define CFUNC10 (256 * '$' + 'R')
  42. #define CFUNC11 (256 * '$' + 'S')
  43. #define CFUNC12 (256 * '$' + 'T')
  44. #define AFUNC1 (256 * '$' + 'U')
  45. #define AFUNC2 (256 * '$' + 'V')
  46. #define AFUNC3 (256 * '$' + 'W')
  47. #define AFUNC4 (256 * '$' + 'X')
  48. #define AFUNC5 (256 * '$' + 'Y')
  49. #define AFUNC6 (256 * '$' + 'Z')
  50. #define AFUNC7 (256 * '$' + '[')
  51. #define AFUNC8 (256 * '$' +  92)
  52. #define AFUNC9 (256 * '$' + ']')
  53. #define AFUNC10 (256 * '$' + '^')
  54. #define AFUNC11 (256 * '$' + '_')
  55. #define AFUNC12 (256 * '$' + 96)
  56. #define SHFTTAB (256 * '^' + '!')
  57. #define DELETEKEY (256 * '#' + '.')
  58. #define INSERTKEY (256 * '#' + '0')
  59. #define ENDKEY (256 * '#' + '1')
  60. #define DOWNARROW (256 * '#' + '2')
  61. #define PGDN (256 * '#' + '3')
  62. #define LEFTARROW (256 * '#' + '4')
  63. #define CENTERCURSOR (256 * '#' + '5')
  64. #define RIGHTARROW (256 * '#' + '6')
  65. #define HOMEKEY (256 * '#' + '7')
  66. #define UPARROW (256 * '#' + '8')
  67. #define PGUP (256 * '#' + '9')
  68. #define CTRLDEL (256 * '#' + 'N')
  69. #define CTRLINS (256 * '#' + 'P')
  70. #define CTRLEND (256 * '#' + 'Q')
  71. #define CTRLDOWN (256 * '#' + 'R')
  72. #define CTRLPGDN (256 * '#' + 'S')
  73. #define CTRLLEFT (256 * '#' + 'T')
  74. #define CTRLKEY5 (256 * '#' + 'U')
  75. #define CTRLRIGHT (256 * '#' + 'V')
  76. #define CTRLHOME (256 * '#' + 'W')
  77. #define CTRLUP (256 * '#' + 'X')
  78. #define CTRLPGUP (256 * '#' + 'Y')
  79. #define ALTDEL (256 * '#' + 'n')
  80. #define ALTINS (256 * '#' + 'p')
  81. #define ALTEND (256 * '#' + 'q')
  82. #define ALTDOWN (256 * '#' + 'r')
  83. #define ALTPGDN (256 * '#' + 's')
  84. #define ALTLARROW (256 * '#' + 't')
  85. #define ALTKEY5 (256 * '#' + 'u')
  86. #define ALTRARROW (256 * '#' + 'v')
  87. #define ALTHOME (256 * '#' + 'w')
  88. #define ALTUP (256 * '#' + 'x')
  89. #define ALTPGUP (256 * '#' + 'y')
  90. #define CTRLA (256 * '^' + 'A')
  91. #define CTRLB (256 * '^' + 'B')
  92. #define CTRLC (256 * '^' + 'C')
  93. #define CTRLD (256 * '^' + 'D')
  94. #define CTRLE (256 * '^' + 'E')
  95. #define CTRLF (256 * '^' + 'F')
  96. #define CTRLG (256 * '^' + 'G')
  97. #define CTRLH (256 * '^' + 'H')
  98. #define BACKSPACE (256 * '^' + 'H')
  99. #define CTRLI (256 * '^' + 'I')
  100. #define TABKEY (256 * '^' + 'I')
  101. #define CTRLJ (256 * '^' + 'J')
  102. #define CTRLK (256 * '^' + 'K')
  103. #define CTRLL (256 * '^' + 'L')
  104. #define CTRLM (256 * '^' + 'M')
  105. #define CRRET (256 * '^' + 'M')
  106. #define CTRLN (256 * '^' + 'N')
  107. #define CTRLO (256 * '^' + 'O')
  108. #define CTRLP (256 * '^' + 'P')
  109. #define CTRLQ (256 * '^' + 'Q')
  110. #define CTRLR (256 * '^' + 'R')
  111. #define CTRLS (256 * '^' + 'S')
  112. #define CTRLT (256 * '^' + 'T')
  113. #define CTRLU (256 * '^' + 'U')
  114. #define CTRLV (256 * '^' + 'V')
  115. #define CTRLW (256 * '^' + 'W')
  116. #define CTRLX (256 * '^' + 'X')
  117. #define CTRLY (256 * '^' + 'Y')
  118. #define CTRLZ (256 * '^' + 'Z')
  119. #define ESCKEY (256 * '^' + '[')
  120. #define CTRLBSLASH (256 * '^' + '\\')
  121. #define CTRLRBRCK (256 * '^' + ']')
  122. #define CTRLCIRC (256 * '^' + '^')
  123. #define CTRLUNDER (256 * '^' + '_')
  124. #define CTRLBACK (256 * '^' + '?')
  125. #define CTRLSPC (256 * '^' + '`')
  126. #define TFOLDUP (256 * '^' + '-')
  127. #define TUNFOLD (256 * '^' + '+')
  128. #define ALTQ (256 * '%' + 'Q')
  129. #define ALTW (256 * '%' + 'W')
  130. #define ALTE (256 * '%' + 'E')
  131. #define ALTR (256 * '%' + 'R')
  132. #define ALTT (256 * '%' + 'T')
  133. #define ALTY (256 * '%' + 'Y')
  134. #define ALTU (256 * '%' + 'U')
  135. #define ALTI (256 * '%' + 'I')
  136. #define ALTO (256 * '%' + 'O')
  137. #define ALTP (256 * '%' + 'P')
  138. #define ALTA (256 * '%' + 'A')
  139. #define ALTS (256 * '%' + 'S')
  140. #define ALTD (256 * '%' + 'D')
  141. #define ALTF (256 * '%' + 'F')
  142. #define ALTG (256 * '%' + 'G')
  143. #define ALTH (256 * '%' + 'H')
  144. #define ALTJ (256 * '%' + 'J')
  145. #define ALTK (256 * '%' + 'K')
  146. #define ALTL (256 * '%' + 'L')
  147. #define ALTZ (256 * '%' + 'Z')
  148. #define ALTX (256 * '%' + 'X')
  149. #define ALTC (256 * '%' + 'C')
  150. #define ALTV (256 * '%' + 'V')
  151. #define ALTB (256 * '%' + 'B')
  152. #define ALTN (256 * '%' + 'N')
  153. #define ALTM (256 * '%' + 'M')
  154. #define ALT1 (256 * '%' + '1')
  155. #define ALT2 (256 * '%' + '2')
  156. #define ALT3 (256 * '%' + '3')
  157. #define ALT4 (256 * '%' + '4')
  158. #define ALT5 (256 * '%' + '5')
  159. #define ALT6 (256 * '%' + '6')
  160. #define ALT7 (256 * '%' + '7')
  161. #define ALT8 (256 * '%' + '8')
  162. #define ALT9 (256 * '%' + '9')
  163. #define ALT0 (256 * '%' + '0')
  164. #define ALTNUM (256 * '%' + '#')
  165. #define ALTSTAR (256 * '%' + '*')
  166. #define FOLDUP  (256 * '%' + '-')
  167. #define UNFOLD  (256 * '%' + '+')
  168.  
  169. /* most of these are not real keyboard keys */
  170. #define NOTHING (256 * '&' + '@')
  171. #define REWRITE (256 * '&' + 'A')
  172. #define HELPKEY (256 * '&' + 'B')
  173. #define CMDKEY (256 * '&' + 'C')
  174. #define WORDEND (256 * '&' + 'D')
  175. #define WORDBEG (256 * '&' + 'E')
  176. #define REVSEARCH (256 * '&' + 'F')
  177. #define CONVMUL (256 * '&' + 'G')
  178. #define ENDMUL (256 * '&' + 'H')
  179. #define FIRSTWORD (256 * '&' + 'I')
  180. #define SCRLEFT (256 * '&' + 'J')
  181. #define SCRRIGHT (256 * '&' + 'K')
  182. #define FRESHSTATUS (256 * '&' + 'L')
  183. #define MACROLIM  (256 * '&' + 'M')
  184. #define LITERAL (256 * '&' + 'N')
  185. #define ECODE (256 * '&' + 'O')
  186. #define COORD (256 * '&' + 'P')
  187. #define SYSDONE (256 * '&' + 'Q')
  188. #define SEARCHREP (256 * '&' + 'R')
  189. #define HALTPNT (256 * '&' + 'S')
  190. #define SINGSTEP (256 * '&' + 'T')
  191. #define CTRLSHFTF (256 * '&' + 'U')
  192. #define CLIPPASTE (256 * '&' + 'V')
  193. #define CLIPCOPY  (256 * '&' + 'W')
  194. #define CLIPDEL   (256 * '&' + 'X')
  195. #define EXITAPP   (256 * '&' + 'Y')
  196. #define ALTNMINUS (256 * '&' + 'Z')
  197. #define TESTNEWER (256 * '&' + '[')
  198. #define SAVEALL   (256 * '&' + '\\')
  199. #define STEPOVER  (256 * '&' + ']')
  200. #define STOPEXEC  (256 * '&' + '^')
  201. #define RESETEXEC (256 * '&' + '_')
  202.  
  203. /* define dialog window pseudo codes. These can be used to open dialog windows */
  204. #define SAVEASDIALOG (256 * '&' + '1')
  205. #define CMDLINEDIALOG (256 * '&' + '2')
  206. #define CONFIGDIALOG (256 * '&' + '3')
  207. #define OPENDIALOG (256 * '&' + '4')
  208. #define OTHERDIALOG (256 * '&' + '5')
  209. #define FINDDIALOG (256 * '&' + '6')
  210. #define REPLACEDIALOG (256 * '&' + '7')
  211. #define PRINTDIALOG (256 * '&' + '8')         /* splot only */
  212. #define EPSFILEDIALOG (256 * '&' + '9')       /* splot only */
  213. #define METAFILEDIALOG (256 * '&' + ':')       /* splot only */
  214. #define BMPFILEDIALOG (256 * '&' + ';')       /* splot only */
  215.  
  216. /* define scroll pseudo codes. Anded with a 24 bit number these cause a scroll */
  217. #define SLEFT ('L' << 24)
  218. #define SRIGHT ('R' << 24)
  219. #define SUP ('U' << 24)
  220. #define SDOWN ('D' << 24)
  221. /* define special cursor move pseudo codes */
  222. #define MLEFT ('l' << 24)
  223. #define MRIGHT ('r' << 24)
  224. #define MUP ('u' << 24)
  225. #define MDOWN ('d' << 24)
  226.  
  227. /* end of file keynames.h */
  228.