12 #if (defined(__DOS__) || defined(__DJGPP__)) && !defined(__CURSES__) 13 typedef unsigned short int screen_block_t;
14 typedef unsigned char screen_char_t;
21 #define _WIN32_WINNT 0x0500 23 typedef CHAR_INFO screen_block_t;
24 typedef unsigned char screen_char_t;
29 typedef chtype screen_block_t;
30 typedef chtype screen_char_t;
34 # if defined(__FLAT__ ) || defined(__LARGE__) 41 #if (defined(__DOS__) || defined(__DJGPP__)) && !defined(__CURSES__) 65 #if defined(__NT__) && !defined(__CURSES__) 67 #define FCOLOR_BLACK (0) 68 #define FCOLOR_RED (FOREGROUND_RED) 69 #define FCOLOR_GREEN (FOREGROUND_GREEN) 70 #define FCOLOR_BLUE (FOREGROUND_BLUE) 71 #define FCOLOR_YELLOW (FOREGROUND_RED | FOREGROUND_GREEN) 72 #define FCOLOR_MAGENTA (FOREGROUND_RED | FOREGROUND_BLUE) 73 #define FCOLOR_WHITE (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE) 74 #define FCOLOR_CYAN (FOREGROUND_GREEN | FOREGROUND_BLUE) 76 #define FCOLOR_LIGHT_BLACK (FCOLOR_BLACK | FOREGROUND_INTENSITY) 77 #define FCOLOR_LIGHT_RED (FCOLOR_RED | FOREGROUND_INTENSITY) 78 #define FCOLOR_LIGHT_GREEN (FCOLOR_GREEN | FOREGROUND_INTENSITY) 79 #define FCOLOR_LIGHT_BLUE (FCOLOR_BLUE | FOREGROUND_INTENSITY) 80 #define FCOLOR_LIGHT_YELLOW (FCOLOR_YELLOW | FOREGROUND_INTENSITY) 81 #define FCOLOR_LIGHT_MAGENTA (FCOLOR_MAGENTA | FOREGROUND_INTENSITY) 82 #define FCOLOR_LIGHT_WHITE (FCOLOR_WHITE | FOREGROUND_INTENSITY) 83 #define FCOLOR_LIGHT_CYAN (FCOLOR_CYAN | FOREGROUND_INTENSITY) 99 #if defined(__CURSES__) 115 #if (defined(__DOS__) || defined(__DJGPP__)) && !defined(__CURSES__) 131 #if defined(__NT__) && !defined(__CURSES__) 133 #define BCOLOR_BLACK (0) 134 #define BCOLOR_RED (BACKGROUND_RED) 135 #define BCOLOR_GREEN (BACKGROUND_GREEN) 136 #define BCOLOR_BLUE (BACKGROUND_BLUE) 137 #define BCOLOR_YELLOW (BACKGROUND_RED | BACKGROUND_GREEN) 138 #define BCOLOR_MAGENTA (BACKGROUND_RED | BACKGROUND_BLUE) 139 #define BCOLOR_WHITE (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE) 140 #define BCOLOR_CYAN (BACKGROUND_GREEN | BACKGROUND_BLUE) 142 #define BCOLOR_LIGHT_BLACK (BCOLOR_BLACK | BACKGROUND_INTENSITY) 143 #define BCOLOR_LIGHT_RED (BCOLOR_RED | BACKGROUND_INTENSITY) 144 #define BCOLOR_LIGHT_GREEN (BCOLOR_GREEN | BACKGROUND_INTENSITY) 145 #define BCOLOR_LIGHT_BLUE (BCOLOR_BLUE | BACKGROUND_INTENSITY) 146 #define BCOLOR_LIGHT_YELLOW (BCOLOR_YELLOW | BACKGROUND_INTENSITY) 147 #define BCOLOR_LIGHT_MAGENTA (BCOLOR_MAGENTA | BACKGROUND_INTENSITY) 148 #define BCOLOR_LIGHT_WHITE (BCOLOR_WHITE | BACKGROUND_INTENSITY) 149 #define BCOLOR_LIGHT_CYAN (BCOLOR_CYAN | BACKGROUND_INTENSITY) 164 #if defined(__CURSES__) 186 #if defined(__CURSES__) 187 extern int _video_has_color;
200 #if defined(__CURSES__) 201 #define screen_set25lines() -1 202 #define screen_set50lines() -1 205 #if defined(__NT__) || defined(__CURSES__) 207 screen_changed_size();
212 screen_char_t
const i_char,
220 unsigned int const i_columns,
221 unsigned int const i_rows,
222 screen_char_t
const i_char,
230 screen_char_t
const i_char,
231 unsigned int const i_repeat_count,
239 screen_char_t
const i_char,
240 unsigned int const i_repeat_count,
248 unsigned char const __FAR* i_string,
249 unsigned int const i_length,
257 unsigned int const i_repeat_count,
261 extern screen_block_t
266 extern screen_block_t __FAR*
268 screen_block_t __FAR* o_block,
269 unsigned int const i_columns,
273 extern screen_block_t
const __FAR*
277 screen_block_t
const __FAR* i_block,
278 unsigned int const i_columns);
287 #if defined(__FLAT__) && !defined(__NT__) 288 #define screen_push(i_copy)
void screen_fill(screen_char_t const i_char, enum foreground const i_fcolor, enum background const i_bcolor)
fill entire screen display
Definition: djgpp/screen.c:160
unsigned int _video_rows
Definition: djgpp/screen.c:25
void screen_puts(int const i_col, int const i_row, unsigned char const __FAR *i_string, unsigned int const i_length, enum foreground const i_fcolor, enum background const i_bcolor)
draw a string to the screen
void screen_deinit()
returns the screen to mode on entry
Definition: djgpp/screen.c:83
screen_block_t screen_getc(int const i_col, int const i_row)
reads a character and it's attribute from the screen
Definition: djgpp/screen.c:601
void screen_set_color(int const i_col, int const i_row, unsigned int const i_repeat_count, enum foreground const i_fcolor, enum background const i_bcolor)
sets the foreground and background color of a horizontal region
Definition: djgpp/screen.c:524
void screen_putc(int const i_col, int const i_row, screen_char_t const i_char, unsigned int const i_repeat_count, enum foreground const i_fcolor, enum background const i_bcolor)
draw a character to the screen
Definition: djgpp/screen.c:280
screen_block_t __FAR * screen_read(screen_block_t __FAR *o_block, unsigned int const i_columns, int const i_col, int const i_row)
read a line of screen memory
Definition: djgpp/screen.c:643
background
background color
Definition: screen.h:117
screen_block_t const __FAR * screen_write(int const i_col, int const i_row, screen_block_t const __FAR *i_block, unsigned int const i_columns)
write a line of screen memory
Definition: djgpp/screen.c:669
int screen_init()
configures the display screen
Definition: djgpp/screen.c:29
unsigned int _video_cols
Definition: djgpp/screen.c:24
int screen_set25lines()
set 25 line screen mode
Definition: djgpp/screen.c:95
foreground
foreground colors
Definition: screen.h:43
int screen_set50lines()
set 50 line screen mode
Definition: djgpp/screen.c:114
void screen_fill_area(int const i_col, int const i_row, unsigned int const i_columns, unsigned int const i_rows, screen_char_t const i_char, enum foreground const i_fcolor, enum background const i_bcolor)
fill an area of the screen
Definition: djgpp/screen.c:191
void screen_putvc(int const i_col, int const i_row, screen_char_t const i_char, unsigned int const i_repeat_count, enum foreground const i_fcolor, enum background const i_bcolor)
draw a character to the screen
Definition: djgpp/screen.c:360