home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / KEYMAP / VSKEYS.H < prev   
Encoding:
C/C++ Source or Header  |  1990-06-30  |  2.3 KB  |  87 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. #ifdef VSMASTER
  55. char VSIkpxlate[2][29]={
  56.     "ABCD0123456789,-.\15PQRSTUVWXY",
  57.     "ABCDpqrstuvwxylmnMPQRSTUVWXY"
  58. };
  59. #else
  60. extern char VSIkpxlate[2][29];
  61. #endif
  62.  
  63. /*
  64. *          Definition of attribute bits in the Virtual Screen
  65. *
  66. *          0   -   Bold
  67. *          1   -   
  68. *          2   -
  69. *          3   -   Underline
  70. *          4   -   Blink
  71. *          5   -
  72. *          6   -   Reverse
  73. *          7   -   Graphics character set
  74. *
  75. */
  76. #define VSisbold(x)      (x & 0x01)
  77. #define VSisundl(x)      (x & 0x08)
  78. #define VSisblnk(x)      (x & 0x10)
  79. #define VSisrev(x)       (x & 0x40)
  80. #define VSisgrph(x)      (x & 0x80)
  81. #define VSinattr(x)      (x & 0xd9)
  82. #define VSgraph(x)       (x | 0x80)
  83. #define VSnotgraph(x) (x & 0x7F)
  84.  
  85. #define VSKEYS_H
  86. #endif
  87.