don't crash with no buffers, and clear the screen on exit
[visor] / visor / src / term.h
index 82ccd16..fbf0558 100644 (file)
@@ -36,16 +36,20 @@ union term_event {
 
 int term_init(const char *ttypath);
 void term_cleanup(void);
+void term_reset(void);
 
 void term_getsize(int *width, int *height);
 void term_resize_func(void (*func)(int, int));
 
 void term_send(const char *s, int size);
+void term_putchar(char c);
 void term_puts(const char *s);
 void term_printf(const char *fmt, ...);
 void term_flush(void);
 
 void term_clear(void);
+void term_setcursor(int row, int col);
+
 int term_getchar(void);
 
 #endif /* TERM_H_ */