32 #define VT100_INITIALIZE -1
34 #define vt100_open_square '['
35 #define vt100_escape 0x1b
36 #define vt100_del 0x7f
39 #define vt100_word_left ESC "b"
40 #define vt100_word_right ESC "f"
41 #define vt100_suppr ESC "[3~"
42 #define vt100_tab "\011"
45 #define vt100_bell "\007"
46 #define vt100_bs "\010"
47 #define vt100_bs_clear "\b \b"
52 VT100_INVALID_KEY = 0,
71 VT100_KEY_META_BKSPACE,
82 extern const char *vt100_commands[];
84 enum vt100_parse_state {
92 #define VT100_BUF_SIZE 8
95 char buf[VT100_BUF_SIZE];
96 enum vt100_parse_state state;
CNDP_API void vt100_do_cmd(int idx)
CNDP_API int vt100_parse_input(struct cli_vt100 *vt, uint8_t c)
CNDP_API struct cli_vt100 * vt100_setup(void)
CNDP_API void vt100_free(struct cli_vt100 *vt)
CNDP_API struct vt100_cmds * vt100_get_cmds(void)