PatchworkOS
Loading...
Searching...
No Matches
ansi.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4#include <sys/kbd.h>
5
6#define ANSI_MAX_LENGTH 32
7
8typedef struct
9{
12} ansi_t;
13
14void ansi_init(ansi_t* ansi);
15
34
40
41uint64_t ansi_parse(ansi_t* ansi, char input, ansi_result_t* result);
EFI_PHYSICAL_ADDRESS buffer
Definition mem.c:15
void ansi_init(ansi_t *ansi)
Definition ansi.c:6
ansi_result_type_t
Definition ansi.h:17
@ ANSI_BACKSPACE
Definition ansi.h:20
@ ANSI_PAGE_UP
Definition ansi.h:27
@ ANSI_CTRL_C
Definition ansi.h:32
@ ANSI_HOME
Definition ansi.h:29
@ ANSI_PAGE_DOWN
Definition ansi.h:28
@ ANSI_ARROW_DOWN
Definition ansi.h:24
@ ANSI_NEWLINE
Definition ansi.h:21
@ ANSI_END
Definition ansi.h:30
@ ANSI_TAB
Definition ansi.h:22
@ ANSI_STILL_PARSING
Definition ansi.h:18
@ ANSI_PRINTABLE
Definition ansi.h:19
@ ANSI_ARROW_UP
Definition ansi.h:23
@ ANSI_DELETE
Definition ansi.h:31
@ ANSI_ARROW_RIGHT
Definition ansi.h:26
@ ANSI_ARROW_LEFT
Definition ansi.h:25
#define ANSI_MAX_LENGTH
Definition ansi.h:6
uint64_t ansi_parse(ansi_t *ansi, char input, ansi_result_t *result)
Definition ansi.c:11
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
__UINT8_TYPE__ uint8_t
Definition stdint.h:11
char printable
Definition ansi.h:38
ansi_result_type_t type
Definition ansi.h:37
Definition ansi.h:9
uint8_t length
Definition ansi.h:11