chiark / gitweb /
*** empty log message ***
[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 void ansi_draw (ANSI * a, CRT * c);
10 void ansi_reset (ANSI * a);
11 void ansi_flush_escape (ANSI * a, Context * c);
12 void ansi_parse_deckey (ANSI * a, Context * c);
13 void ansi_parse_ansikey (ANSI * a, Context * c);
14 void ansi_parse_escape (ANSI * a, Context * c);
15 void ansi_check_escape (ANSI * a, Context * c);
16 void ansi_parse_char (ANSI * a, Context * c, int ch);
17 void ansi_parse (ANSI * a, Context * c, char *buf, int len);
18 int ansi_dispatch (ANSI * a, Context * c);
19 /* crt.c */
20 void crt_erase (CRT * c, CRT_Pos s, CRT_Pos e, int ea);
21 void crt_cls (CRT * c);
22 void crt_scroll_up (CRT * c, CRT_Pos s, CRT_Pos e, int ea);
23 void crt_scroll_down (CRT * c, CRT_Pos s, CRT_Pos e, int ea);
24 void crt_reset (CRT * c);
25 void crt_insert (CRT * c, CRT_CA ca);
26 /* html.c */
27 void html_entity (FILE * f, int c);
28 void html_render (FILE * f, CRT_CA c);
29 void html_draw (FILE * f, CRT * c);
30 /* libsympathy.c */
31 void testy (void);
32 /* render.c */
33 /* version.c */
34 /* vt102.c */
35 void vt102_log_line (Context * c, int line);
36 void vt102_clip_cursor (VT102 * v, CRT_Pos tl, CRT_Pos br);
37 void vt102_cursor_normalize (VT102 * v);
38 void vt102_cursor_carriage_return (VT102 * v);
39 void vt102_cursor_advance_line (Context * c);
40 void vt102_cursor_advance (Context * c);
41 void vt102_do_pending_wrap (Context * c);
42 void vt102_cursor_retard (VT102 * v);
43 void vt102_reset_tabs (VT102 * v);
44 void vt102_cursor_advance_tab (VT102 * v);
45 int vt102_cursor_home (VT102 * v);
46 int vt102_cursor_absolute (VT102 * v, int x, int y);
47 int vt102_cursor_relative (VT102 * v, int x, int y);
48 void vt102_delete_from_line (VT102 * v, CRT_Pos p);
49 void vt102_insert_into_line (VT102 * v, CRT_Pos p);
50 void vt102_change_mode (VT102 * v, int private, char *ns, int set);
51 void vt102_parse_mode_string (VT102 * v, char *buf, int len);
52 void vt102_change_attr (VT102 * v, char *na);
53 void vt102_parse_attr_string (VT102 * v, char *buf, int len);
54 void vt102_save_state (VT102 * v);
55 void vt102_restore_state (VT102 * v);
56 void vt102_scs (Context * c, int g, int s);
57 void vt102_parse_esc (Context * c, int ch);
58 void vt102_parse_csi (Context * c, char *buf, int len);
59 void vt102_status_line (VT102 * v, char *str);
60 void vt102_parse_char (Context * c, int ch);
61 int vt102_parse (Context * c, char *buf, int len);
62 void vt102_parser_reset (VT102_parser * p);
63 void vt102_send (Context * c, uint8_t key);
64 void vt102_reset (VT102 * v);
65 int vt102_dispatch (Context * c);
66 int vt102_dispatch_one (Context * c);
67 VT102 *vt102_new (void);
68 void vt102_free (VT102 * v);
69 /* tty.c */
70 /* history.c */
71 History *history_new (int n);
72 void history_free (History * h);
73 void history_add (History * h, CRT_CA * c);
74 /* ring.c */
75 int ring_read (Ring * r, void *b, int n);
76 int ring_write (Ring * r, void *b, int n);
77 Ring *ring_new (int n);
78 /* ptty.c */
79 TTY *ptty_open (char *path, char *argv[]);
80 /* terminal.c */
81 int terminal_winches;
82 void terminal_atexit (void);
83 void terminal_getsize (TTY * _t);
84 void terminal_dispatch (void);
85 void terminal_register_handlers (void);
86 TTY *terminal_open (int rfd, int wfd);
87 /* util.c */
88 int wrap_read (int fd, void *buf, int len);
89 int wrap_write (int fd, void *buf, int len);
90 void set_nonblocking (int fd);
91 void set_blocking (int fd);
92 void raw_termios (struct termios *termios);
93 void default_termios (struct termios *termios);