/* ansi.c */
+int ansi_read(ANSI *a, void *buf, int n);
void ansi_write(ANSI *a, char *buf, int n);
void ansi_getsize(ANSI *a);
void ansi_move(ANSI *a, CRT_Pos p);
void ansi_cls(ANSI *a);
void ansi_draw(ANSI *a, CRT *c);
void ansi_reset(ANSI *a);
+void ansi_flush_escape(ANSI *a, VT102 *v);
+void ansi_parse_deckey(ANSI *a, VT102 *v);
+void ansi_parse_ansikey(ANSI *a, VT102 *v);
+void ansi_parse_escape(ANSI *a, VT102 *v);
+void ansi_check_escape(ANSI *a, VT102 *v);
void ansi_parse_char(ANSI *a, int c, VT102 *v);
void ansi_parse(ANSI *a, char *buf, int len, VT102 *v);
int ansi_dispatch(ANSI *a, VT102 *v);
struct termios old;
void testy(void);
/* render.c */
-/* testtty.c */
-int open_fd_to_bash(void);
/* version.c */
/* vt102.c */
void vt102_log_line(VT102 *v, int line);
int vt102_dispatch(VT102 *v);
VT102 *vt102_new(TTY *t);
void vt102_free(VT102 *v);
+/* tty.c */
+TTY *tty_new_test(void);
+int tty_read(TTY *t, void *buf, int len);
+int tty_write(TTY *t, void *buf, int len);
+void tty_free(TTY *t);