2 * Code for controlling the console
3 * Based on an early version of SDL_Console
5 * Written By: Garrett Banuk <mongoose@mongeese.org>
6 * Code Cleanup and heavily extended by: Clemens Wacha <reflex-2000@gmx.net>
7 * Ported to use native Descent interfaces by: Bradley Bell <btb@icculus.org>
9 * This is free, just be sure to give us credit when using it
10 * in any of your programs.
21 CON_CLOSED, // The console is closed (and not shown)
22 CON_CLOSING, // The console is still open and visible but closing
23 CON_OPENING, // The console is visible and opening but not yet fully open
24 CON_OPEN, // The console is open and visible
27 /* Takes keys from the keyboard and inputs them to the console if the console isVisible().
28 * If the event was not handled (i.e. WM events or unknown ctrl- or alt-sequences)
29 * the function returns the event for further processing. */
30 int con_key_handler(int key);
31 /* Makes the console visible */
33 /* Hides the console */
35 /* Returns 1 if the console is visible, 0 else */
36 int con_is_visible(void);
37 /* Draws the console to the screen if it isVisible()*/
39 /* Initializes the console */
41 /* Initializes the graphical console */
42 void con_init_gfx(int w, int h);
46 #define CON_CRITICAL -2
52 void con_printf(int level, char *fmt, ...);
55 /* How discriminating we are about which messages are displayed */
56 extern cvar_t con_threshold;
58 /* text foreground color */
61 #endif /* _CONSOLE_H_ */