UEFIStarter
a simple UEFI framework
console.h
Go to the documentation of this file.
1 
11 #ifndef __CONSOLE_H
12 #define __CONSOLE_H
13 
14 #include <Uefi.h>
15 #include "cmdline.h"
16 
17 EFI_STATUS EFIAPI init(INTN argc, CHAR16 **argv, UINTN arg_group_count, ...);
18 void shutdown();
19 
20 void print_console_modes();
21 EFI_STATUS set_console_mode(unsigned int requested_mode);
22 void EFIAPI color_print(UINTN color, CHAR16 *fmt, ...);
23 
24 
25 void drain_key_buffer();
26 void wait_for_key();
27 
28 #endif
void EFIAPI color_print(UINTN color, CHAR16 *fmt,...)
Prints a text with the given color.
Definition: console.c:85
EFI_STATUS EFIAPI init(INTN argc, CHAR16 **argv, UINTN arg_group_count,...)
Initializes an UEFIStarter application.
Definition: console.c:152
void print_console_modes()
Prints the list of available console modes.
Definition: console.c:24
void wait_for_key()
Waits for any keystroke.
Definition: console.c:127
void shutdown()
Shuts the UEFIStarter internals down.
Definition: console.c:185
EFI_STATUS set_console_mode(unsigned int requested_mode)
Sets a new text mode.
Definition: console.c:54
Command line parameter parser.
void drain_key_buffer()
Empties the keyboard input buffer.
Definition: console.c:107