home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / VSKEYS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-07  |  3.2 KB  |  106 lines

  1. /*
  2. *        @(#)vskeys.h    1.25    (NCSA)    4/29/88
  3. *
  4. *      Virtual Screen Kernel Keys and Attribute Definitions
  5. *              (vskeys.c)
  6. *  
  7. *    National Center for Supercomputing Applications
  8. *      by Gaige B. Paulsen
  9. *
  10. *      This file contains equates used by the program for specification of
  11. *  special Keyboard characters and definition of the Attribute byte.
  12. *
  13. *      Version Date    Notes
  14. *      ------- ------  ---------------------------------------------------
  15. *      0.01    861102  Initial coding -GBP
  16. *        2.1        871130    NCSA Telnet 2.1 -GBP
  17. *        2.2     880715    NCSA Telnet 2.2 -GBP
  18. *
  19. */
  20.  
  21. #ifndef VSKEYS_H
  22. #define VSKEYS_H
  23.  
  24. #define VSUP    129        /* Up Arrow */
  25. #define VSDN    130        /* Down Arrow */
  26. #define VSRT    131        /* Right Arrow */
  27. #define VSLT    132        /* Left Arrow */
  28.  
  29. #define VSK0    133        /* Keypad 0 */
  30. #define VSK1    134        /* Keypad 1 */
  31. #define VSK2    135        /* Keypad 2 */
  32. #define VSK3    136        /* Keypad 3 */
  33. #define VSK4    137        /* Keypad 4 */
  34. #define VSK5    138        /* Keypad 5 */
  35. #define VSK6    139        /* Keypad 6 */
  36. #define VSK7    140        /* Keypad 7 */
  37. #define VSK8    141        /* Keypad 8 */
  38. #define VSK9    142        /* Keypad 9 */
  39. #define VSKC    143        /* Keypad , */
  40. #define VSKM    144        /* Keypad - */
  41. #define VSKP    145        /* Keypad . */
  42. #define VSKE    146        /* Keypad Enter */
  43.  
  44. #define VSF1    147        /* Function 1 */
  45. #define VSF2    148        /* Function 2 */
  46. #define VSF3    149        /* Function 3 */
  47. #define VSF4    150        /* Function 4 */
  48. #define VSF5    151        /* Function 5 */
  49. #define VSF6    152        /* Function 6 */
  50. #define VSF7    153        /* Function 7 */
  51. #define VSF8    154        /* Function 8 */
  52. #define VSF9    155        /* Function 9 */
  53. #define VSF10    156        /* Function 10 */
  54.  
  55. /*
  56. *   Ok, here's the scoop about these next couple of codes.
  57. *   The keymapping specifications called for certain keys
  58. *   to always send cursor control VT100 strings.  These
  59. *   next codes always send the correct cursor control
  60. *   escape strings.  The problem with the regular VSUP,
  61. *   VSDN, etc. keys was that depending on the current state
  62. *   of other VT100 flags (mainly DECCKM and DECKPAM) they
  63. *   could output other escape strings.  These codes are
  64. *   hardwired to always send the cursor control codes.
  65. *   the parse_serb() routine in keymap.c and the VSkbsend()
  66. *   routine in vsinterf.c understand these codes.
  67. *           QAK - 6/91
  68. */
  69. #define VSUP_SPECIAL    193     /* Special Up Arrow Code */
  70. #define VSDN_SPECIAL    194     /* Special Down Arrow Code */
  71. #define VSRT_SPECIAL    195     /* Special Right Arrow Code */
  72. #define VSLT_SPECIAL    196     /* Special Left Arrow Code */
  73.  
  74. #ifdef VSMASTER
  75. char VSIkpxlate[2][29]={
  76.     "ABCD0123456789,-.\15PQRSTUVWXY",
  77.     "ABCDpqrstuvwxylmnMPQRSTUVWXY"
  78. };
  79. #else
  80. extern char VSIkpxlate[2][29];
  81. #endif
  82.  
  83. /*
  84. *          Definition of attribute bits in the Virtual Screen
  85. *
  86. *          0   -   Bold
  87. *          1   -   
  88. *          2   -
  89. *          3   -   Underline
  90. *          4   -   Blink
  91. *          5   -
  92. *          6   -   Reverse
  93. *          7   -   Graphics character set
  94. *
  95. */
  96. #define VSisbold(x)      (x & 0x01)
  97. #define VSisundl(x)      (x & 0x08)
  98. #define VSisblnk(x)      (x & 0x10)
  99. #define VSisrev(x)       (x & 0x40)
  100. #define VSisgrph(x)      (x & 0x80)
  101. #define VSinattr(x)      (x & 0xd9)
  102. #define VSgraph(x)       (x | 0x80)
  103. #define VSnotgraph(x) (x & 0x7F)
  104.  
  105. #endif
  106.