PatchworkOS  3984a1d
A non-POSIX operating system.
Loading...
Searching...
No Matches
ansi.h File Reference
#include <stdint.h>
#include <sys/kbd.h>
Include dependency graph for ansi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ansi_t
 
struct  ansi_result_t
 

Macros

#define ANSI_MAX_LENGTH   32
 

Enumerations

enum  ansi_result_type_t {
  ANSI_STILL_PARSING , ANSI_PRINTABLE , ANSI_BACKSPACE , ANSI_NEWLINE ,
  ANSI_TAB , ANSI_ARROW_UP , ANSI_ARROW_DOWN , ANSI_ARROW_LEFT ,
  ANSI_ARROW_RIGHT , ANSI_PAGE_UP , ANSI_PAGE_DOWN , ANSI_HOME ,
  ANSI_END , ANSI_DELETE , ANSI_CTRL_C
}
 

Functions

void ansi_init (ansi_t *ansi)
 
uint64_t ansi_parse (ansi_t *ansi, char input, ansi_result_t *result)
 

Macro Definition Documentation

◆ ANSI_MAX_LENGTH

#define ANSI_MAX_LENGTH   32

Definition at line 6 of file ansi.h.

Enumeration Type Documentation

◆ ansi_result_type_t

Enumerator
ANSI_STILL_PARSING 
ANSI_PRINTABLE 
ANSI_BACKSPACE 
ANSI_NEWLINE 
ANSI_TAB 
ANSI_ARROW_UP 
ANSI_ARROW_DOWN 
ANSI_ARROW_LEFT 
ANSI_ARROW_RIGHT 
ANSI_PAGE_UP 
ANSI_PAGE_DOWN 
ANSI_HOME 
ANSI_END 
ANSI_DELETE 
ANSI_CTRL_C 

Definition at line 16 of file ansi.h.

Function Documentation

◆ ansi_init()

void ansi_init ( ansi_t ansi)

Definition at line 6 of file ansi.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ansi_parse()

uint64_t ansi_parse ( ansi_t ansi,
char  input,
ansi_result_t result 
)

Definition at line 11 of file ansi.c.

Here is the call graph for this function:
Here is the caller graph for this function: