home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / VIDEO.H < prev    next >
Text File  |  1992-12-25  |  2KB  |  94 lines

  1. /* sys/video.h (emx+gcc) */
  2.  
  3. #if !defined (_SYS_VIDEO_H)
  4. #define _SYS_VIDEO_H
  5.  
  6. #if !defined (_VA_LIST)
  7. #define _VA_LIST
  8. typedef char *va_list;
  9. #endif
  10.  
  11. #if !defined (B_BLACK)
  12.  
  13. /* Background colors */
  14.  
  15. #define B_BLACK      0x00
  16. #define B_BLUE       0x10
  17. #define B_GREEN      0x20
  18. #define B_CYAN       0x30
  19. #define B_RED        0x40
  20. #define B_MAGENTA    0x50
  21. #define B_YELLOW     0x60
  22. #define B_BROWN      0x60
  23. #define B_WHITE      0x70
  24.  
  25. /* Foreground colors */
  26.  
  27. #define F_BLACK      0x00
  28. #define F_BLUE       0x01
  29. #define F_GREEN      0x02
  30. #define F_CYAN       0x03
  31. #define F_RED        0x04
  32. #define F_MAGENTA    0x05
  33. #define F_YELLOW     0x06
  34. #define F_BROWN      0x06
  35. #define F_WHITE      0x07
  36.  
  37. /* Other attributes */
  38.  
  39. #define INTENSITY    0x08
  40. #define BLINK        0x80
  41.  
  42. /* black and white attributes */
  43.  
  44. #define BW_BLANK     0x00
  45. #define BW_UNDERLINE 0x01
  46. #define BW_NORMAL    0x07
  47. #define BW_REVERSE   0x70
  48.  
  49. #endif
  50.  
  51. /* v_hardware() return values */
  52.  
  53. #define V_COLOR_8    1
  54. #define V_COLOR_12   2
  55. #define V_MONOCHROME 3
  56.  
  57. /* v_scroll() */
  58.  
  59. #define V_SCROLL_UP    0
  60. #define V_SCROLL_DOWN  1
  61. #define V_SCROLL_LEFT  2
  62. #define V_SCROLL_RIGHT 3
  63. #define V_SCROLL_CLEAR 4
  64.  
  65. void v_attrib (int a);
  66. void v_backsp (int count);
  67. void v_clear (void);
  68. void v_clreol (void);
  69. void v_ctype (int start, int end);
  70. void v_delline (int count);
  71. void v_dimen (int *width, int *height);
  72. int v_getattr (void);
  73. void v_getctype (int *start, int *end);
  74. void v_getline (char *dst, int x, int y, int count);
  75. void v_getxy (int *x, int *y);
  76. void v_gotoxy (int x, int y);
  77. int v_hardware (void);
  78. void v_hidecursor (void);
  79. int v_init (void);
  80. void v_insline (int count);
  81. int v_printf (__const__ char *fmt, ...);
  82. void v_putc (char c);
  83. void v_putline (__const__ char *src, int x, int y, int count);
  84. void v_putm (__const__ char *str, int len);
  85. void v_putmask (__const__ char *src, __const__ char *mask, int x, int y,
  86.     int count);
  87. void v_putn (char c, int count);
  88. void v_puts (__const__ char *str);
  89. void v_scroll (int tl_x, int tl_y, int br_x, int br_y, int count, int flag);
  90. void v_scrollup (void);
  91. int v_vprintf (__const__ char *fmt, va_list arg_ptr);
  92.  
  93. #endif /* !defined (_SYS_VIDEO_H) */
  94.