PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches

ANSI. More...

Collaboration diagram for ANSI:

Detailed Description

ANSI.

Data Structures

struct  ansi_receiving_t
 ANSI receiving structure. More...
 
struct  ansi_sending_t
 ANSI sending structure. More...
 

Macros

#define ANSI_MAX_LENGTH   32
 The size we use for buffers when parsing ANSI sequences.
 

Functions

static void ansi_kbd_to_receiving (ansi_receiving_t *ansi, const event_kbd_t *kbd)
 Convert a keycode to an ANSI receiving sequence.
 
static void ansi_sending_init (ansi_sending_t *ansi)
 Initialize an ANSI sending structure.
 
static bool ansi_sending_parse (ansi_sending_t *ansi, char chr)
 Parse a character for ANSI sending.
 

Macro Definition Documentation

◆ ANSI_MAX_LENGTH

#define ANSI_MAX_LENGTH   32

The size we use for buffers when parsing ANSI sequences.

Definition at line 20 of file ansi.h.

Function Documentation

◆ ansi_kbd_to_receiving()

static void ansi_kbd_to_receiving ( ansi_receiving_t ansi,
const event_kbd_t kbd 
)
inlinestatic

Convert a keycode to an ANSI receiving sequence.

A receiving sequence is a sequence sent from the terminal and received by processes running in the terminal.

Parameters
ansiThe receiving structure to store the sequence in.
kbdThe keyboard event to convert.

Definition at line 40 of file ansi.h.

Here is the caller graph for this function:

◆ ansi_sending_init()

static void ansi_sending_init ( ansi_sending_t ansi)
inlinestatic

Initialize an ANSI sending structure.

Parameters
ansiThe sending structure to initialize.

Definition at line 154 of file ansi.h.

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

◆ ansi_sending_parse()

static bool ansi_sending_parse ( ansi_sending_t ansi,
char  chr 
)
inlinestatic

Parse a character for ANSI sending.

Parameters
ansiThe sending structure.
chrThe character to parse.
Returns
Whether the sequence is complete or still parsing.

Definition at line 171 of file ansi.h.

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