iPXE
|
ANSI escape sequences. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | ansiesc_call_handler (struct ansiesc_context *ctx, unsigned int function, int count, int params[]) |
Call ANSI escape sequence handler. More... | |
int | ansiesc_process (struct ansiesc_context *ctx, int c) |
Process character that may be part of ANSI escape sequence. More... | |
ANSI escape sequences.
Definition in file ansiesc.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Call ANSI escape sequence handler.
ctx | ANSI escape sequence context |
function | Control function identifier |
count | Parameter count |
params | Parameter list |
Definition at line 44 of file ansiesc.c.
References count, ctx, ansiesc_handler::function, and ansiesc_handler::handle.
Referenced by ansiesc_process().
int ansiesc_process | ( | struct ansiesc_context * | ctx, |
int | c | ||
) |
Process character that may be part of ANSI escape sequence.
ctx | ANSI escape sequence context |
c | Character |
c | Original character if not part of escape sequence |
<0 | Character was part of escape sequence |
ANSI escape sequences will be plucked out of the character stream and interpreted; once complete they will be passed to the appropriate handler if one exists in this ANSI escape sequence context.
In the interests of code size, we are rather liberal about the sequences we are prepared to accept as valid.
Definition at line 74 of file ansiesc.c.
References ansiesc_call_handler(), c, count, ctx, DBG, ESC, memset(), and param.
Referenced by bios_putchar(), efi_putchar(), fbcon_putchar(), and line_putchar().