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

  1. /*********************
  2.  *
  3.  *  co_head.h [NON-ANSI] - header for console functions.
  4.  *
  5.  *  Purpose: This file contains the constants and globals for the
  6.  *           co_ functions for console control.  The ANSI device
  7.  *           driver is required.
  8.  *
  9.  *  Blackstar C Function Library
  10.  *  (c) Copyright 1985,1989 Sterling Castle Software
  11.  *
  12.  *******/
  13.  
  14. #define IBMPC   0
  15.  
  16. #define ANSI    0
  17. #define SCREEN  1
  18. #define GRAPHIC 2
  19.  
  20. /*
  21.  *  Mode type index
  22.  */
  23.  
  24. #define BW40        0
  25. #define CO40        1
  26. #define BW80        2
  27. #define CO80        3
  28. #define CO320x200    4
  29. #define BW320x200    5
  30. #define BW640x400    6
  31.  
  32.  
  33. /*
  34.  *  Control command index
  35.  */
  36.  
  37. #define    CUP    0    /* cursor position*/
  38. #define CUU    1    /* cursor up */
  39. #define CUD    2    /* cursor down */
  40. #define CUF    3    /* cursor forward */
  41. #define CUB    4    /* cursor backward */
  42. #define DSR    5    /* get cursor position */
  43. #define CPC    6    /* cursor position returned string column index */
  44. #define CPR    7    /* cursor position returned string row index */
  45. #define SCP    8    /* savethe current cursor position */
  46. #define RCP    9    /* restore the previously saved cursor position */
  47. #define ED    10    /* erase from cursor to end of screen */
  48. #define EL    11    /* erase from cursor to end of line */
  49. #define FCO    12    /* set the text foreground color */
  50. #define BCO    13    /* set the text background color */
  51. #define SAT    14    /* set the character attribute */
  52. #define MOD    15    /* set the screen mode */
  53.  
  54. /*
  55.  *  Attribute code index
  56.  */
  57.  
  58. #define AT_REG   0       /* regular character attribute */
  59. #define AT_BOLD  1       /* bold attribute */
  60. #define AT_US    4       /* underscore */
  61. #define AT_BLINK 5       /* blinking */
  62. #define AT_REV   7       /* reverse colors */
  63. #define AT_CANC  8       /* cancelled (invisible) */
  64.  
  65. /*
  66.  *  Color code index for foreground and background colors
  67.  */
  68.  
  69. #define FBLACK   0       /* foreground black */
  70. #define FRED     1
  71. #define FGREEN   2
  72. #define FYELLOW  3
  73. #define FBLUE    4
  74. #define FMAGENTA 5    
  75. #define FCYAN    6
  76. #define FWHITE   7
  77.     
  78. #define BBLACK   10      /* background black */
  79. #define BRED     11
  80. #define BGREEN   12
  81. #define BYELLOW  13
  82. #define BBLUE    14
  83. #define BMAGENTA 15    
  84. #define BCYAN    16
  85. #define BWHITE   17
  86.  
  87.  
  88.  
  89.  
  90.  
  91.