15 struct term_ev_resize {
20 struct term_ev_mbutton {
25 struct term_ev_mmotion {
31 struct term_ev_any any;
32 struct term_ev_resize resize;
33 struct term_ev_mbutton mbutton;
34 struct term_ev_mmotion mmotion;
37 int term_init(const char *ttypath);
38 void term_cleanup(void);
39 void term_reset(void);
41 void term_getsize(int *width, int *height);
42 void term_resize_func(void (*func)(int, int));
44 void term_send(const char *s, int size);
45 void term_putchar(char c);
46 void term_puts(const char *s);
47 void term_printf(const char *fmt, ...);
48 void term_flush(void);
50 void term_clear(void);
51 void term_setcursor(int row, int col);
53 int term_getchar(void);