PatchworkOS
Loading...
Searching...
No Matches
ansi.h File Reference
#include <ctype.h>
#include <libpatchwork/event.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

Data Structures

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

Macros

#define ANSI_MAX_LENGTH   8
 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.