37 #undef USE_SCREEN_CURSES 38 #undef USE_SCREEN_VCSA 39 #undef USE_SCREEN_WIN32 42 #if 1 && (WITH_GUI) && !defined(NO_CONSOLE) 46 #if 1 && defined(__linux__) 48 # define USE_SCREEN_VCSA 1 49 # if !(HAVE_LINUX_KD_H) 51 # undef USE_SCREEN_VCSA 53 # if !(HAVE_LINUX_KDEV_T_H) || !(HAVE_LINUX_MAJOR_H) 55 # undef USE_SCREEN_VCSA 59 #if 1 && defined(__DJGPP__) 61 #elif 1 && (ACC_OS_CYGWIN || ACC_OS_WIN32 || ACC_OS_WIN64) 63 # define USE_SCREEN_WIN32 1 64 #elif 1 && (ACC_OS_EMX && defined(__RSXNT__)) 66 # define USE_SCREEN_WIN32 1 76 #if 0 || (NO_FRAMES) || !(USE_SCREEN) 84 #if 0 || (USE_ANSI) || (USE_SCREEN) 85 # define USE_CONSOLE 1 88 #if 0 || (NO_CONSOLE) || !(USE_CONSOLE) 92 # undef USE_SCREEN_VCSA 93 # undef USE_SCREEN_CURSES 117 int (*init)(FILE *f, int, int);
118 int (*set_fg)(FILE *f,
int fg);
119 void (*print0)(FILE *f,
const char *s);
120 bool (*intro)(FILE *f);
125 #if defined(__GNUC__) 126 void __acc_cdecl_va con_fprintf(FILE *f,
const char *format, ...)
127 __attribute__((__format__(printf,2,3)));
129 void __acc_cdecl_va con_fprintf(FILE *f,
const char *format, ...);
133 #define FG_BLACK 0x00 135 #define FG_GREEN 0x02 138 #define FG_VIOLET 0x05 139 #define FG_ORANGE 0x06 140 #define FG_LTGRAY 0x07 141 #define FG_DKGRAY 0x08 142 #define FG_BRTBLUE 0x09 143 #define FG_BRTGREEN 0x0a 144 #define FG_BRTCYAN 0x0b 145 #define FG_BRTRED 0x0c 146 #define FG_BRTVIOLET 0x0d 147 #define FG_YELLOW 0x0e 148 #define FG_WHITE 0x0f 150 #define BG_BLACK 0x00 152 #define BG_GREEN 0x20 155 #define BG_VIOLET 0x50 156 #define BG_ORANGE 0x60 157 #define BG_WHITE 0x70 166 extern FILE *con_term;
171 extern console_t *con;
173 extern console_t console_init;
174 extern console_t console_none;
175 extern console_t console_file;
176 extern console_t console_ansi_mono;
177 extern console_t console_ansi_color;
178 extern console_t console_screen;
181 #define con_fg(f,x) con->set_fg(f,x) 185 #define con_fg(f,x) 0 186 #define con_fprintf fprintf