X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fprototypes.h;h=f69feb8d356496aa83aa19e808a14823ed8ade26;hb=2f406c1ccbb3c26864d293f17769a89de6a9f20d;hp=c75ddbc31f5bfc6c4574d78b4254702ee5637ddc;hpb=12fda04e4445a5e8584a22526df773eaba44711f;p=sympathy.git diff --git a/src/prototypes.h b/src/prototypes.h index c75ddbc..f69feb8 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -10,14 +10,14 @@ void ansi_render(ANSI *a, CRT_CA ca); 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); +void ansi_flush_escape(ANSI *a, VT102 *v, TTY *t); +void ansi_parse_deckey(ANSI *a, VT102 *v, TTY *t); +void ansi_parse_ansikey(ANSI *a, VT102 *v, TTY *t); +void ansi_parse_escape(ANSI *a, VT102 *v, TTY *t); +void ansi_check_escape(ANSI *a, VT102 *v, TTY *t); +void ansi_parse_char(ANSI *a, int c, VT102 *v, TTY *t); +void ansi_parse(ANSI *a, char *buf, int len, VT102 *v, TTY *t); +int ansi_dispatch(ANSI *a, VT102 *v, TTY *t); /* crt.c */ void crt_erase(CRT *c, CRT_Pos s, CRT_Pos e, int ea); void crt_cls(CRT *c); @@ -56,16 +56,17 @@ void vt102_change_attr(VT102 *v, char *na); void vt102_parse_attr_string(VT102 *v, char *buf, int len); void vt102_save_state(VT102 *v); void vt102_restore_state(VT102 *v); +void vt102_scs(VT102 *c, int g, int s); void vt102_parse_esc(VT102 *v, int c); void vt102_parse_csi(VT102 *v, char *buf, int len); void vt102_status_line(VT102 *v, char *str); -void vt102_parse_char(VT102 *v, int c); -int vt102_parse(VT102 *v, char *buf, int len); +void vt102_parse_char(VT102 *v, int c, TTY *tty); +int vt102_parse(VT102 *v, char *buf, int len, TTY *t); void vt102_parser_reset(VT102_parser *p); -void vt102_send(VT102 *v, uint8_t key); +void vt102_send(VT102 *v, uint8_t key, TTY *tty); void vt102_reset(VT102 *v); -int vt102_dispatch(VT102 *v); -VT102 *vt102_new(TTY *t); +int vt102_dispatch(VT102 *v, TTY *tty); +VT102 *vt102_new(void); void vt102_free(VT102 *v); /* tty.c */ TTY *tty_new_test(void);