X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fprototypes.h;h=9477d24f13397eae8dab1f1a126b20aabe6edda9;hb=44d6921df2f77ffedfe383f3819b4c0165197c4f;hp=56af551b2010ddb1acf4fc03f3ef5636648d0496;hpb=5175425f563e29f4698d2941ba1825b09965aaa5;p=sympathy.git diff --git a/src/prototypes.h b/src/prototypes.h index 56af551..9477d24 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -1,39 +1,51 @@ /* ansi.c */ -void ansi_write (ANSI * a, char *buf, int n); -void ansi_getsize (ANSI * a); -void ansi_move (ANSI * a, CRT_Pos p); -void ansi_showhide_cursor (ANSI * a, int hide); -void ansi_force_attr_normal (ANSI * a); -void ansi_set_attr (ANSI * a, int attr); -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_write(ANSI *a, char *buf, int n); +void ansi_getsize(ANSI *a); +void ansi_move(ANSI *a, CRT_Pos p); +void ansi_showhide_cursor(ANSI *a, int hide); +void ansi_force_attr_normal(ANSI *a); +void ansi_set_attr(ANSI *a, int attr); +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); /* crt.c */ -void crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea); -void crt_cls (CRT * c); -void crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea); -void crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea); -void crt_reset (CRT * c); -void crt_insert (CRT * c, CRT_CA ca); +void crt_erase(CRT *c, CRT_Pos s, CRT_Pos e, int ea); +void crt_cls(CRT *c); +void crt_scroll_up(CRT *c, CRT_Pos s, CRT_Pos e, int ea); +void crt_scroll_down(CRT *c, CRT_Pos s, CRT_Pos e, int ea); +void crt_reset(CRT *c); +void crt_insert(CRT *c, CRT_CA ca); /* html.c */ -void html_entity (FILE * f, int c); -void html_render (FILE * f, CRT_CA c); -void html_draw (FILE * f, CRT * c); +void html_entity(FILE *f, int c); +void html_render(FILE *f, CRT_CA c); +void html_draw(FILE *f, CRT *c); /* libsympathy.c */ struct termios old; -void testy (void); +void testy(void); /* render.c */ /* testtty.c */ -int open_fd_to_bash (void); +int open_fd_to_bash(void); /* version.c */ /* vt102.c */ -void vt102_cursor_normalize (VT102 * v, int do_wrapscroll, int use_margins); -void vt102_cursor_motion (VT102 * v, int x, int y, int wrapscroll); -void vt102_delete_from_line (VT102 * v, CRT_Pos p); -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); -void vt102_parser_reset (VT102_parser * p); -void vt102_reset (VT102 * v); +int vt102_inmargins(VT102 *v, CRT_Pos p); +void vt102_clip_cursor(VT102 *v, CRT_Pos tl, CRT_Pos br); +void vt102_cursor_normalize(VT102 *v); +void vt102_cursor_advance_line(VT102 *v); +void vt102_cursor_advance(VT102 *v); +void vt102_cursor_retard(VT102 *v); +void vt102_reset_tabs(VT102 *v); +void vt102_cursor_advance_tab(VT102 *v); +int vt102_cursor_home(VT102 *v); +int vt102_cursor_absolute(VT102 *v, int x, int y); +int vt102_cursor_relative(VT102 *v, int x, int y); +void vt102_delete_from_line(VT102 *v, CRT_Pos p); +void vt102_insert_into_line(VT102 *v, CRT_Pos p); +void vt102_change_mode(VT102 *v, int private, char *ns, int set); +void vt102_parse_mode_string(VT102 *v, char *buf, int len); +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); +void vt102_parser_reset(VT102_parser *p); +void vt102_reset(VT102 *v);