home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progc / tde11.arj / TDECOLOR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-11  |  2.8 KB  |  92 lines

  1.  
  2. char *sample_screen[] = {
  3. "╒═══════╡ Sample Help Screen ╞════════╕ ╒════════╡ Sample Text Screen ╞════════╕",
  4. "│                                     │ │ File Header    Size = xxx    Line:Col│",
  5. "│ * Press Enter (Return) to move      │ │                                      │",
  6. "│   to the next color field.          │ │ Text area.  Regular text will be     │",
  7. "│                                     │ │ will be displayed in this color.     │",
  8. "│ * The Up and Down arrows change     │ │                                      │",
  9. "│   the foreground color.             │ │ Block area.  Line and box blocks are │",
  10. "│                                     │ │ marked in this color.                │",
  11. "│ * The Page up and Page down keys    │ │                                      │",
  12. "│   change the background color.      │ │ Warning Messages                     │",
  13. "│                                     │ │ Mode/Information         wrapped...  │",
  14. "╘═════════════════════════════════════╛ ╘══════════════════════════════════════╛",
  15. NULL
  16. };
  17.  
  18.  
  19. char *field_screen[] = {
  20. "                                        Help screen [   ]",
  21. " F2 = Load default colors               File Header [   ] Warning Messages [   ]",
  22. " F3 = Quit                              Text Area   [   ] Mode/Information [   ]",
  23. "F10 = Write colors to tde.exe           Block Color [   ] wrapped...       [   ]",
  24. NULL
  25. };
  26.  
  27. struct {
  28.    int line;
  29.    int col;
  30.    int color;
  31.    void (*show_me)();
  32. } fields[7] = {
  33.    { 12, 52, 0 }, { 13, 52, 0 }, { 14, 52, 0 },  { 15, 52, 0 },
  34.                   { 13, 75, 0 }, { 14, 75, 0 },  { 15, 75, 0 }
  35. };
  36.  
  37.  
  38. #define TRUE            1
  39. #define FALSE           0
  40.  
  41.  
  42. #define VIDEO_INT       0x10
  43.  
  44. #define HERC_REVERSE    0x70
  45. #define HERC_UNDER      0x01
  46. #define HERC_NORMAL     0x07
  47. #define HERC_HIGH       0x0F
  48.  
  49. #define COLOR_HEAD      0x4b
  50. #define COLOR_TEXT      0x07
  51. #define COLOR_MODE      0x17
  52. #define COLOR_BLOCK     0x7f
  53. #define COLOR_MESSAGE   0x0f
  54. #define COLOR_HELP      0x1A
  55. #define COLOR_WRAP      0x1A
  56.  
  57.  
  58. #define HEAD            0
  59. #define TEXT            1
  60. #define MODE            2
  61. #define BLOCK           3
  62. #define WARNING         4
  63. #define HELP            5
  64. #define WRAP            6
  65.  
  66. #define VGA             3
  67. #define EGA             2
  68. #define CGA             1
  69. #define MDA             0
  70.  
  71. struct vcfg {
  72.    int color;
  73.    int rescan;
  74.    int mode;
  75.    int adapter;
  76.    int far *videomem;
  77. };
  78.  
  79.  
  80. #define ESC             27
  81. #define LEFT            (75 | 0x100)
  82. #define RIGHT           (77 | 0x100)
  83. #define UP              (72 | 0x100)
  84. #define DOWN            (80 | 0x100)
  85. #define RTURN           13
  86. #define PGUP            (73 | 0x100)
  87. #define PGDN            (81 | 0x100)
  88. #define F1              (59 | 0x100)
  89. #define F2              (60 | 0x100)
  90. #define F3              (61 | 0x100)
  91. #define F10             (68 | 0x100)
  92.