20#define ANSI_MAX_LENGTH 32
124 if (
kbd->ascii >= 32 &&
kbd->ascii < 126)
160 ansi->paramCount = 0;
161 ansi->command =
'\0';
182 ansi->parameters[0] = 0;
183 ansi->paramCount = 0;
184 ansi->extended =
false;
189 ansi->extended =
false;
191 ansi->paramCount = 0;
211 ansi->extended =
true;
223 ansi->parameters[
ansi->paramCount] =
@ KBD_MOD_CTRL
Control modifier.
@ KBD_LEFT
Left arrow key.
@ KBD_DOWN
Down arrow key.
@ KBD_BACKSPACE
Backspace key.
@ KBD_RIGHT
Right arrow key.
@ KBD_PAGE_DOWN
Page Down key.
@ KBD_PAGE_UP
Page Up key.
static bool ansi_sending_parse(ansi_sending_t *ansi, char chr)
Parse a character for ANSI sending.
static void ansi_sending_init(ansi_sending_t *ansi)
Initialize an ANSI sending structure.
static void ansi_kbd_to_receiving(ansi_receiving_t *ansi, const event_kbd_t *kbd)
Convert a keycode to an ANSI receiving sequence.
#define ANSI_MAX_LENGTH
The size we use for buffers when parsing ANSI sequences.
EFI_PHYSICAL_ADDRESS buffer
_PUBLIC void * memset(void *s, int c, size_t n)
ANSI receiving structure.
bool extended
The command contains a '?' indicating an extended command.
char buffer[ANSI_MAX_LENGTH]