home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume24 / mced / part01 / getch.h < prev    next >
C/C++ Source or Header  |  1991-10-26  |  3KB  |  104 lines

  1.  
  2. /*
  3.  * This software is Copyright (c) 1989, 1990, 1991 by Patrick J. Wolfe.
  4.  *
  5.  * Permission is hereby granted to copy, distribute or otherwise 
  6.  * use any part of this package as long as you do not try to make 
  7.  * money from it or pretend that you wrote it.  This copyright 
  8.  * notice must be maintained in any copy made.
  9.  *
  10.  * Use of this software constitutes acceptance for use in an AS IS 
  11.  * condition. There are NO warranties with regard to this software.  
  12.  * In no event shall the author be liable for any damages whatsoever 
  13.  * arising out of or in connection with the use or performance of this 
  14.  * software.  Any use of this software is at the user's own risk.
  15.  *
  16.  * If you make modifications to this software that you feel 
  17.  * increases it usefulness for the rest of the community, please 
  18.  * email the changes, enhancements, bug fixes as well as any and 
  19.  * all ideas to me. This software is going to be maintained and 
  20.  * enhanced as deemed necessary by the community.
  21.  *              
  22.  *              Patrick J. Wolfe
  23.  *              uunet!uiucuxc!kailand!pwolfe
  24.  *              pwolfe@kailand.kai.com
  25.  */
  26.  
  27. /*************************************************************
  28.  * Modifications made by aknight to add definitions for escape
  29.  * functions and Sun R function keys, also wiped out sections
  30.  * for SYSVcurses, VT120, VT220
  31.  ************************************************************/
  32. #ifndef SYSVcurses
  33. /* System V curses key names and codes returned by getch */
  34. #define KEY_DOWN        0402
  35. #define KEY_UP          0403
  36. #define KEY_LEFT        0404
  37. #define KEY_RIGHT       0405
  38. #define KEY_BACKSPACE   0407
  39. #endif /* NOT SYSVcurses */
  40.  
  41. /* ascii control codes */
  42. #define ControlA    001
  43. #define ControlB    002
  44. #define ControlC    003
  45. #define ControlD    004
  46. #define ControlE    005
  47. #define ControlF    006
  48. #define ControlG    007
  49. #define ControlH    010
  50. #define BackSpace    010
  51. #define ControlI    011
  52. #define Tab        011
  53. #define ControlJ    012
  54. #define LineFeed    012
  55. #define ControlK    013
  56. #define ControlL    014
  57. #define ControlM    015
  58. #define Return        015
  59. #define ControlN    016
  60. #define ControlO    017
  61. #define ControlP    020
  62. #define ControlQ    021
  63. #define ControlR    022
  64. #define ControlS    023
  65. #define ControlT    024
  66. #define ControlU    025
  67. #define ControlV    026
  68. #define ControlW    027
  69. #define ControlX    030
  70. #define ControlY    031
  71. #define ControlZ    032
  72. #define Escape        033
  73. #define Control[    033
  74. #define Delete        0177
  75. #define Del        0177
  76. #define CSI        0233
  77.  
  78. /* added by aknight */
  79.  
  80. #define EscapeD        1001
  81. #define EscapeF        1002
  82. #define EscapeB        1003
  83. #define EscapeDEL    1004
  84. #define EscapeM        1005
  85. #define EscapeC        1006
  86. #define EscapeU        1007
  87. #define EscapeL        1008
  88.  
  89. #define Sun_R1        1208
  90. #define Sun_R2        1209
  91. #define Sun_R3        1210
  92. #define Sun_R4        1211
  93. #define Sun_R5        1212
  94. #define Sun_R6        1213
  95. #define Sun_R7        1214
  96. #define Sun_R8        1215
  97. #define Sun_R9        1216
  98. #define Sun_R10        1217
  99. #define Sun_R11        1218
  100. #define Sun_R12        1219
  101. #define Sun_R13        1220
  102. #define Sun_R14        1221
  103. #define Sun_R15        1222
  104.