20#define ANSI_MAX_LENGTH 32
123 if (
kbd->ascii >= 32 &&
kbd->ascii < 126)
197 if (ansi->
buffer[1] ==
'[')
_PUBLIC int isdigit(int c)
@ 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.
@ KBD_MOD_CTRL
Control modifier.
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.
char buffer[ANSI_MAX_LENGTH]
bool extended
The command contains a '?' indicating an extended command.
char buffer[ANSI_MAX_LENGTH]
uint32_t parameters[ANSI_MAX_LENGTH]