66#define ANSIESC_MAX_PARAMS 5
104#define ANSIESC_CUP 'H'
107#define ANSIESC_ED 'J'
110#define ANSIESC_ED_TO_END 0
113#define ANSIESC_ED_FROM_START 1
116#define ANSIESC_ED_ALL 2
119#define ANSIESC_SGR 'm'
126#define ANSIESC_LOG_PRIORITY 'p'
129#define ANSIESC_DECTCEM_SET ( ( '?' << 8 ) | 'h' )
132#define ANSIESC_DECTCEM_RESET ( ( '?' << 8 ) | 'l' )
struct golan_eq_context ctx
#define ANSIESC_MAX_PARAMS
Maximum number of parameters within a single escape sequence.
int ansiesc_process(struct ansiesc_context *ctx, int c)
Process character that may be part of ANSI escape sequence.
static unsigned int count
Number of entries.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
ANSI escape sequence context.
unsigned int function
Control function identifier.
unsigned int count
Parameter count.
int params[ANSIESC_MAX_PARAMS]
Parameter list.
struct ansiesc_handler * handlers
Array of handlers.
A handler for an escape sequence.
void(* handle)(struct ansiesc_context *ctx, unsigned int count, int params[])
Handle escape sequence.
unsigned int function
The control function identifier.