|
PatchworkOS
|
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) |
| enum ansi_result_type_t |
| void ansi_init | ( | ansi_t * | ansi | ) |
| uint64_t ansi_parse | ( | ansi_t * | ansi, |
| char | input, | ||
| ansi_result_t * | result | ||
| ) |
Definition at line 11 of file ansi.c.
References ANSI_ARROW_DOWN, ANSI_ARROW_LEFT, ANSI_ARROW_RIGHT, ANSI_ARROW_UP, ANSI_BACKSPACE, ANSI_CTRL_C, ANSI_DELETE, ANSI_END, ANSI_HOME, ANSI_MAX_LENGTH, ANSI_NEWLINE, ANSI_PAGE_DOWN, ANSI_PAGE_UP, ANSI_PRINTABLE, ANSI_STILL_PARSING, ANSI_TAB, ansi_t::buffer, ERR, ansi_t::length, ansi_result_t::printable, strcmp(), and ansi_result_t::type.
Referenced by interactive_handle_input().