chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / prototypes.h
1 /* ansi.c */
2 int ansi_read(ANSI *a, void *buf, int n);
3 void ansi_write(ANSI *a, char *buf, int n);
4 void ansi_getsize(ANSI *a);
5 void ansi_move(ANSI *a, CRT_Pos p);
6 void ansi_showhide_cursor(ANSI *a, int hide);
7 void ansi_force_attr_normal(ANSI *a);
8 void ansi_set_color(ANSI *a, int color);
9 void ansi_set_attr(ANSI *a, int attr);
10 void ansi_render(ANSI *a, CRT_CA ca);
11 void ansi_cls(ANSI *a);
12 int ansi_scroll_up(ANSI *a, CRT_Pos s, CRT_Pos e);
13 void ansi_spot_scroll_up(ANSI *a, CRT *c);
14 void ansi_spot_scroll(ANSI *a, CRT *c);
15 void ansi_draw(ANSI *a, CRT *c);
16 void ansi_reset(ANSI *a);
17 void ansi_flush_escape(ANSI *a, VT102 *v, TTY *t);
18 void ansi_parse_deckey(ANSI *a, VT102 *v, TTY *t);
19 void ansi_parse_ansikey(ANSI *a, VT102 *v, TTY *t);
20 void ansi_parse_escape(ANSI *a, VT102 *v, TTY *t);
21 void ansi_check_escape(ANSI *a, VT102 *v, TTY *t);
22 void ansi_parse_char(ANSI *a, int c, VT102 *v, TTY *t);
23 void ansi_parse(ANSI *a, char *buf, int len, VT102 *v, TTY *t);
24 int ansi_dispatch(ANSI *a, VT102 *v, TTY *t);
25 /* crt.c */
26 void crt_erase(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
27 void crt_cls(CRT *c);
28 void crt_scroll_up(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
29 void crt_scroll_down(CRT *c, CRT_Pos s, CRT_Pos e, int ea);
30 void crt_reset(CRT *c);
31 void crt_insert(CRT *c, CRT_CA ca);
32 /* html.c */
33 void html_entity(FILE *f, int c);
34 void html_render(FILE *f, CRT_CA c);
35 void html_draw(FILE *f, CRT *c);
36 /* libsympathy.c */
37 struct termios old;
38 void testy(void);
39 /* render.c */
40 /* version.c */
41 /* vt102.c */
42 void vt102_log_line(VT102 *v, int line);
43 void vt102_clip_cursor(VT102 *v, CRT_Pos tl, CRT_Pos br);
44 void vt102_cursor_normalize(VT102 *v);
45 void vt102_cursor_carriage_return(VT102 *v);
46 void vt102_cursor_advance_line(VT102 *v);
47 void vt102_cursor_advance(VT102 *v);
48 void vt102_do_pending_wrap(VT102 *v);
49 void vt102_cursor_retard(VT102 *v);
50 void vt102_reset_tabs(VT102 *v);
51 void vt102_cursor_advance_tab(VT102 *v);
52 int vt102_cursor_home(VT102 *v);
53 int vt102_cursor_absolute(VT102 *v, int x, int y);
54 int vt102_cursor_relative(VT102 *v, int x, int y);
55 void vt102_delete_from_line(VT102 *v, CRT_Pos p);
56 void vt102_insert_into_line(VT102 *v, CRT_Pos p);
57 void vt102_change_mode(VT102 *v, int private, char *ns, int set);
58 void vt102_parse_mode_string(VT102 *v, char *buf, int len);
59 void vt102_change_attr(VT102 *v, char *na);
60 void vt102_parse_attr_string(VT102 *v, char *buf, int len);
61 void vt102_save_state(VT102 *v);
62 void vt102_restore_state(VT102 *v);
63 void vt102_scs(VT102 *c, int g, int s);
64 void vt102_parse_esc(VT102 *v, int c);
65 void vt102_parse_csi(VT102 *v, char *buf, int len);
66 void vt102_status_line(VT102 *v, char *str);
67 void vt102_parse_char(VT102 *v, int c, TTY *tty);
68 int vt102_parse(VT102 *v, char *buf, int len, TTY *t);
69 void vt102_parser_reset(VT102_parser *p);
70 void vt102_send(VT102 *v, uint8_t key, TTY *tty);
71 void vt102_reset(VT102 *v);
72 int vt102_dispatch(VT102 *v, TTY *tty);
73 int vt102_dispatch_one(VT102 *v, TTY *tty);
74 VT102 *vt102_new(void);
75 void vt102_free(VT102 *v);
76 /* tty.c */
77 /* history.c */
78 History *history_new(int n);
79 void history_free(History *h);
80 void history_add(History *h, CRT_CA *c);
81 /* ring.c */
82 int ring_read(Ring *r, void *b, int n);
83 int ring_write(Ring *r, void *b, int n);
84 Ring *ring_new(int n);
85 /* ptty.c */
86 void ptty_close(TTY *_t);
87 TTY *ptty_open(char *path, char *argv[]);