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