1 #ifndef _IPXE_CONSOLE_H 2 #define _IPXE_CONSOLE_H 105 #define CONSOLE_DISABLED_INPUT 0x0001 108 #define CONSOLE_DISABLED_OUTPUT 0x0002 111 #define CONSOLE_DISABLED ( CONSOLE_DISABLED_INPUT | CONSOLE_DISABLED_OUTPUT ) 114 #define CONSOLES __table ( struct console_driver, "consoles" ) 133 #define __console_driver __table_entry ( CONSOLES, 01 ) 141 #define CONSOLE_USAGE_STDOUT 0x0001 144 #define CONSOLE_USAGE_DEBUG 0x0002 147 #define CONSOLE_USAGE_TUI 0x0004 150 #define CONSOLE_USAGE_LOG 0x0008 153 #define CONSOLE_USAGE_ALL ( CONSOLE_USAGE_STDOUT | CONSOLE_USAGE_DEBUG | \ 154 CONSOLE_USAGE_TUI | CONSOLE_USAGE_LOG ) 168 #define CONSOLE_EXPLICIT( console ) ( ( 2 * console + 1 ) != 2 ) 171 #define CONSOLE_DEFAULT_WIDTH 80 174 #define CONSOLE_DEFAULT_HEIGHT 25 206 extern int iskey (
void );
static void console_set_size(unsigned int width, unsigned int height)
Set console size.
unsigned int height
Height.
unsigned int depth
Colour depth.
int(* configure)(struct console_configuration *config)
Configure console.
unsigned int console_width
Console width.
int usage
Console usage bitmask.
unsigned int console_height
Console height.
unsigned int bottom
Bottom margin.
void(* putchar)(int character)
Write a character to the console.
int(* iskey)(void)
Check for available input.
static void console_reset(void)
Reset console.
int getkey(unsigned long timeout)
Get single keypress.
unsigned int right
Right margin.
int console_configure(struct console_configuration *config)
Configure console.
int console_usage
Current console usage.
int disabled
Console disabled flags.
struct pixel_buffer * pixbuf
Background picture, if any.
int iskey(void)
Check for available input on any console.
unsigned int top
Top margin.
static int console_set_usage(int usage)
Set console usage.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int(* getchar)(void)
Read a character from the console.
#define NULL
NULL pointer (VOID *)
unsigned int left
Left margin.