home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / INCLUDE / VSKEYS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-27  |  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.  
  23. #define VSUP    129        /* Up Arrow */
  24. #define VSDN    130        /* Down Arrow */
  25. #define VSRT    131        /* Right Arrow */
  26. #define VSLT    132        /* Left Arrow */
  27.  
  28. #define VSK0    133        /* Keypad 0 */
  29. #define VSK1    134        /* Keypad 1 */
  30. #define VSK2    135        /* Keypad 2 */
  31. #define VSK3    136        /* Keypad 3 */
  32. #define VSK4    137        /* Keypad 4 */
  33. #define VSK5    138        /* Keypad 5 */
  34. #define VSK6    139        /* Keypad 6 */
  35. #define VSK7    140        /* Keypad 7 */
  36. #define VSK8    141        /* Keypad 8 */
  37. #define VSK9    142        /* Keypad 9 */
  38. #define VSKC    143        /* Keypad , */
  39. #define VSKM    144        /* Keypad - */
  40. #define VSKP    145        /* Keypad . */
  41. #define VSKE    146        /* Keypad Enter */
  42.  
  43. #define VSF1    147        /* Function 1 */
  44. #define VSF2    148        /* Function 2 */
  45. #define VSF3    149        /* Function 3 */
  46. #define VSF4    150        /* Function 4 */
  47. #define VSF5    151        /* Function 5 */
  48. #define VSF6    152        /* Function 6 */
  49. #define VSF7    153        /* Function 7 */
  50. #define VSF8    154        /* Function 8 */
  51. #define VSF9    155        /* Function 9 */
  52. #define VSF10    156        /* Function 10 */
  53.  
  54. /*
  55. *   Ok, here's the scoop about these next couple of codes.
  56. *   The keymapping specifications called for certain keys
  57. *   to always send cursor control VT100 strings.  These
  58. *   next codes always send the correct cursor control
  59. *   escape strings.  The problem with the regular VSUP,
  60. *   VSDN, etc. keys was that depending on the current state
  61. *   of other VT100 flags (mainly DECCKM and DECKPAM) they
  62. *   could output other escape strings.  These codes are
  63. *   hardwired to always send the cursor control codes.
  64. *   the parse_serb() routine in keymap.c and the VSkbsend()
  65. *   routine in vsinterf.c understand these codes.
  66. *           QAK - 6/91
  67. */
  68. #define VSUP_SPECIAL    193     /* Special Up Arrow Code */
  69. #define VSDN_SPECIAL    194     /* Special Down Arrow Code */
  70. #define VSRT_SPECIAL    195     /* Special Right Arrow Code */
  71. #define VSLT_SPECIAL    196     /* Special Left Arrow Code */
  72.  
  73. #ifdef VSMASTER
  74. char VSIkpxlate[2][29]={
  75.     "ABCD0123456789,-.\15PQRSTUVWXY",
  76.     "ABCDpqrstuvwxylmnMPQRSTUVWXY"
  77. };
  78. #else
  79. extern char VSIkpxlate[2][29];
  80. #endif
  81.  
  82. /*
  83. *          Definition of attribute bits in the Virtual Screen
  84. *
  85. *          0   -   Bold
  86. *          1   -   
  87. *          2   -
  88. *          3   -   Underline
  89. *          4   -   Blink
  90. *          5   -
  91. *          6   -   Reverse
  92. *          7   -   Graphics character set
  93. *
  94. */
  95. #define VSisbold(x)      (x & 0x01)
  96. #define VSisundl(x)      (x & 0x08)
  97. #define VSisblnk(x)      (x & 0x10)
  98. #define VSisrev(x)       (x & 0x40)
  99. #define VSisgrph(x)      (x & 0x80)
  100. #define VSinattr(x)      (x & 0xd9)
  101. #define VSgraph(x)       (x | 0x80)
  102. #define VSnotgraph(x) (x & 0x7F)
  103.  
  104. #define VSKEYS_H
  105. #endif
  106.