home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c222 / 1.ddi / INC / SC_HEAD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-21  |  3.5 KB  |  104 lines

  1. /*********************
  2.  *
  3.  *  sc_head.h [NON-ANSI] - screen header file.
  4.  *
  5.  *  Purpose: This header is included in all sc_write functions.
  6.  *
  7.  *  Blackstar C Function Library
  8.  *  (c) Copyright 1985,1989 Sterling Castle Software
  9.  *
  10.  *******/
  11.  
  12. /*
  13.  *  define all functions for console to be screen functions
  14.  */
  15.  
  16. #define MON_ADP 1        /* monochrome adapter */
  17. #define CGA_ADP 2        /* CGA adapter */
  18. #define EGA_ADP 4        /* EGA adapter */
  19.  
  20. #define AT_BONW    0x70        /* black on white             */
  21. #define AT_WONB 0x07        /* white on black             */
  22.  
  23. #define AT_REG       0        /* attribute definitions      */
  24. #define AT_BLINK   5
  25. #define AT_INV     2
  26. #define AT_HIGH    3
  27. #define AT_LOW     4
  28.  
  29. #define AT_BLM  0x80        /* attribute set masks        */
  30. #define AT_HIM    0x08
  31. #define AT_LOM  0xf7        
  32.  
  33. #define BLACK      0        /* color definitions          */
  34. #define BLUE      1
  35. #define GREEN     2
  36. #define CYAN      3
  37. #define RED       4
  38. #define MAGENTA   5
  39. #define BROWN     6
  40. #define WHITE     7
  41. #define GRAY      8
  42. #define LBLUE     9
  43. #define LGREEN   10
  44. #define LCYAN    11
  45. #define LRED     12
  46. #define LMAGENTA 13
  47. #define YELLOW   14
  48. #define LBROWN   14 
  49. #define LWHITE   15
  50.  
  51. #define HL_CHAR 0xc4            /* horizontal line character  */
  52. #define LB_CHAR    0xc0        /* left bottom corner         */
  53. #define LT_CHAR    0xda        /* left top corner            */
  54. #define MO_CO80 03        /* mode color 80x25           */
  55. #define MO_BW80 02        /* mode black and white 80x25 */
  56. #define MO_CO40 01        /* mode color 40x25           */
  57. #define MO_BW40 00        /* mode black and while 40x25 */
  58. #define NO_COLR 16        /* max # of colors            */
  59. #define RB_CHAR 0xd9        /* right bottom corner        */
  60. #define RT_CHAR 0xbf        /* right top corner           */
  61. #define VL_CHAR 0xb3        /* vertical line character    */
  62.  
  63.  
  64. #define eeol    sc_eeol         /* erase to end of line       */
  65. #define clrwin    sc_clrwin    /* clear window               */
  66. #define movc    sc_movcur    /* move cursor                */
  67. #define putf    sc_putf        /* put string in field        */
  68. #define putl    sc_putl        /* put line                   */
  69. #define puts    sc_puts        /* put string                 */
  70.  
  71. extern char     rattr_;         /* regular attribute          */
  72. extern char     nattr_;         /* inverse attribute          */
  73.  
  74. extern int      scrollf_;       /* scroll flag                */
  75. extern int      wrapf_ ;        /* wrap around flag           */
  76. extern int      nlexpf_;        /* expand /n to /r/n flag     */
  77.  
  78. /*
  79.  *  physical screen
  80.  */
  81.  
  82. extern int    scolen_,scolst_;
  83. extern int    srowen_,srowst_;
  84.  
  85. /*
  86.  *  globals from driver
  87.  */
  88.  
  89. extern int colen_;              /* end column for window      */
  90. extern int colst_;              /* start column for window    */
  91. extern int rowen_;              /* row end for window         */
  92. extern int rowst_;              /* row start for window       */
  93. extern int sc_cols_;            /* # columns                  */
  94. extern int sc_rows_;            /* # rows                     */
  95. extern int sc_col_;             /* cursor column              */
  96. extern int sc_row_;             /* cursor row                 */
  97. extern int sc_mode_;            /* screen mode                */
  98. extern int sc_page_;            /* screen page                */
  99. extern char sc_attr_;           /* character attribute        */
  100. extern char sc_adp_;            /* type of adapter            */
  101. extern char sc_mem_;            /* memory on adapter board    */
  102. extern char sc_swi_;            /* switch setting             */
  103. extern char sc_crt_;            /* type of crt 1=color 0=mono */
  104.