home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / tel_2_2_ / source / vskeys.h < prev    next >
C/C++ Source or Header  |  1988-07-15  |  2KB  |  76 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.  *      by Gaige B. Paulsen
  8.  *
  9.  *      This file contains equates used by the program for specification of
  10.  *  special Keyboard characters and definition of the Attribute byte.
  11.  *
  12.  *      Version Date    Notes
  13.  *      ------- ------  ---------------------------------------------------
  14.  *      0.01    861102  Initial coding -GP
  15.  *
  16.  */
  17.  
  18. #define VSUP    129     /* Up Arrow */
  19. #define VSDN    130     /* Down Arrow */
  20. #define VSRT    131     /* Right Arrow */
  21. #define VSLT    132     /* Left Arrow */
  22.  
  23. #define VSK0    133     /* Keypad 0 */
  24. #define VSK1    134     /* Keypad 1 */
  25. #define VSK2    135     /* Keypad 2 */
  26. #define VSK3    136     /* Keypad 3 */
  27. #define VSK4    137     /* Keypad 4 */
  28. #define VSK5    138     /* Keypad 5 */
  29. #define VSK6    139     /* Keypad 6 */
  30. #define VSK7    140     /* Keypad 7 */
  31. #define VSK8    141     /* Keypad 8 */
  32. #define VSK9    142     /* Keypad 9 */
  33.  
  34. #define VSKC    143     /* Keypad , */
  35. #define VSKM    144     /* Keypad - */
  36. #define VSKP    145     /* Keypad . */
  37. #define VSKE    146     /* Keypad Enter */
  38.  
  39. #define VSF1    147     /* Function 1 */
  40. #define VSF2    148     /* Function 2 */
  41. #define VSF3    149     /* Function 3 */
  42. #define VSF4    150     /* Function 4 */
  43.  
  44. #ifdef VSMASTER
  45. char VSIkpxlate[2][23] =
  46.     {    "ABCD0123456789,-.\15PQRS",
  47.         "ABCDpqrstuvwxylmnMPQRS"
  48.     };
  49. #else
  50. extern char *VSIkpxlate;
  51. #endif
  52.  
  53. /*
  54.  *          Definition of attribute bits in the Virtual Screen
  55.  *
  56.  *          0   -   Bold
  57.  *          1   -   
  58.  *          2   -
  59.  *          3   -   Underline
  60.  *          4   -   Blink
  61.  *          5   -
  62.  *          6   -   Reverse
  63.  *          7   -   Graphics character set
  64.  *
  65.  */
  66.  
  67. #define VSisbold(x) (x & 0x01)
  68. #define VSisundl(x) (x & 0x08)
  69. #define VSisblnk(x) (x & 0x10)
  70. #define VSisrev(x)  (x & 0x40)
  71. #define VSisgrph(x) (x & 0x80)
  72. #define VSinattr(x) (x & 0xd9)
  73.  
  74. #define VSgraph(x)  (x | 0x80)
  75. #define VSnotgraph(x) (x & 0x7F)
  76.