term.h (491B)
1 #ifndef TERMBOX_TERM_H 2 #define TERMBOX_TERM_H 3 4 #include "termbox.h" 5 #include "ringbuffer.h" 6 7 enum { 8 T_ENTER_CA, 9 T_EXIT_CA, 10 T_SHOW_CURSOR, 11 T_HIDE_CURSOR, 12 T_CLEAR_SCREEN, 13 T_SGR0, 14 T_UNDERLINE, 15 T_BOLD, 16 T_BLINK, 17 T_ENTER_KEYPAD, 18 T_EXIT_KEYPAD 19 }; 20 21 #define EUNSUPPORTED_TERM -1 22 23 int init_term(void); 24 25 /* true on success, false on failure */ 26 bool extract_event(struct tb_event *event, struct ringbuffer *inbuf, int inputmode); 27 28 extern const char **keys; 29 extern const char **funcs; 30 31 #endif