chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / prototypes.h
1 /* ansi.c */
2 void ansi_write(ANSI *a, char *buf, int n);
3 void ansi_getsize(ANSI *a);
4 void ansi_move(ANSI *a, CRT_Pos p);
5 void ansi_showhide_cursor(ANSI *a, int hide);
6 void ansi_force_attr_normal(ANSI *a);
7 void ansi_set_attr(ANSI *a, int attr);
8 void ansi_render(ANSI *a, CRT_CA ca);
9 void ansi_cls(ANSI *a);
10 void ansi_draw(ANSI *a, CRT *c);
11 void ansi_reset(ANSI *a);
12 void ansi_parse_char(ANSI *a, int c, VT102 *v);
13 void ansi_parse(ANSI *a, char *buf, int len, VT102 *v);
14 int ansi_dispatch(ANSI *a, VT102 *v);
15 /* crt.c */
16 void crt_erase(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
17 void crt_cls(CRT *c);
18 void crt_scroll_up(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
19 void crt_scroll_down(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
20 void crt_reset(CRT *c);
21 void crt_insert(CRT *c, CRT_CA ca);
22 /* html.c */
23 void html_entity(FILE *f, int c);
24 void html_render(FILE *f, CRT_CA c);
25 void html_draw(FILE *f, CRT *c);
26 /* libsympathy.c */
27 struct termios old;
28 void testy(void);
29 /* render.c */
30 /* testtty.c */
31 int open_fd_to_bash(void);
32 /* version.c */
33 /* vt102.c */
34 void vt102_log_line(VT102 *v, int line);
35 void vt102_clip_cursor(VT102 *v, CRT_Pos tl, CRT_Pos br);
36 void vt102_cursor_normalize(VT102 *v);
37 void vt102_cursor_carriage_return(VT102 *v);
38 void vt102_cursor_advance_line(VT102 *v);
39 void vt102_cursor_advance(VT102 *v);
40 void vt102_do_pending_wrap(VT102 *v);
41 void vt102_cursor_retard(VT102 *v);
42 void vt102_reset_tabs(VT102 *v);
43 void vt102_cursor_advance_tab(VT102 *v);
44 int vt102_cursor_home(VT102 *v);
45 int vt102_cursor_absolute(VT102 *v, int x, int y);
46 int vt102_cursor_relative(VT102 *v, int x, int y);
47 void vt102_delete_from_line(VT102 *v, CRT_Pos p);
48 void vt102_insert_into_line(VT102 *v, CRT_Pos p);
49 void vt102_change_mode(VT102 *v, int private, char *ns, int set);
50 void vt102_parse_mode_string(VT102 *v, char *buf, int len);
51 void vt102_change_attr(VT102 *v, char *na);
52 void vt102_parse_attr_string(VT102 *v, char *buf, int len);
53 void vt102_save_state(VT102 *v);
54 void vt102_restore_state(VT102 *v);
55 void vt102_parse_esc(VT102 *v, int c);
56 void vt102_parse_csi(VT102 *v, char *buf, int len);
57 void vt102_status_line(VT102 *v, char *str);
58 void vt102_parse_char(VT102 *v, int c);
59 int vt102_parse(VT102 *v, char *buf, int len);
60 void vt102_parser_reset(VT102_parser *p);
61 void vt102_send(VT102 *v, uint8_t key);
62 void vt102_reset(VT102 *v);
63 int vt102_dispatch(VT102 *v);
64 VT102 *vt102_new(TTY *t);
65 void vt102_free(VT102 *v);
66 /* tty.c */
67 TTY *tty_new_test(void);
68 int tty_read(TTY *t, void *buf, int len);
69 int tty_write(TTY *t, void *buf, int len);
70 void tty_free(TTY *t);