/* Console */ #ifndef _CONSOLE_H_ #define _CONSOLE_H_ #include "pstypes.h" /* Priority levels */ #define CON_CRITICAL -3 #define CON_URGENT -2 #define CON_HUD -1 #define CON_NORMAL 0 #define CON_VERBOSE 1 #define CON_DEBUG 2 #define CON_LINES_ONSCREEN 18 #define CON_SCROLL_OFFSET (CON_LINES_ONSCREEN - 3) #define CON_LINES_MAX 128 #define CON_LINE_LENGTH 512 typedef struct console_buffer { char line[CON_LINE_LENGTH]; int priority; } __pack__ console_buffer; extern int con_render; void con_init(void); void con_printf(int level, char *fmt, ...); void con_show(void); int con_events(int key); #endif /* _CONSOLE_H_ */