void ansi_set_attr (ANSI * a, int attr);
void ansi_render (ANSI * a, CRT_CA ca);
void ansi_cls (ANSI * a);
+void ansi_draw_line (ANSI * a, CRT_CA * cap, int y);
+void ansi_resize_check (ANSI * a);
+void ansi_history (ANSI * a, History * h);
void ansi_draw (ANSI * a, CRT * c);
-void ansi_reset (ANSI * a);
+void ansi_reset (ANSI * a, CRT * c);
+void ansi_terminal_reset (ANSI * a);
void ansi_flush_escape (ANSI * a, Context * c);
void ansi_parse_deckey (ANSI * a, Context * c);
void ansi_parse_ansikey (ANSI * a, Context * c);
void html_draw (FILE * f, CRT * c);
/* libsympathy.c */
void testy (void);
+void ring_test (void);
/* render.c */
/* version.c */
/* vt102.c */
void vt102_log_line (Context * c, int line);
+void vt102_history (Context * c, CRT_Pos t, CRT_Pos b);
void vt102_clip_cursor (VT102 * v, CRT_Pos tl, CRT_Pos br);
void vt102_cursor_normalize (VT102 * v);
void vt102_cursor_carriage_return (VT102 * v);
/* ring.c */
int ring_read (Ring * r, void *b, int n);
int ring_write (Ring * r, void *b, int n);
+int ring_space (Ring * r);
+int ring_bytes (Ring * r);
Ring *ring_new (int n);
/* ptty.c */
TTY *ptty_open (char *path, char *argv[]);
void set_blocking (int fd);
void raw_termios (struct termios *termios);
void default_termios (struct termios *termios);
+/* log.c */
+Log *file_log_new (char *fn);
+/* ipc.c */
+Socket *socket_listen (char *path);
+Socket *socket_accept (Socket * l);
+Socket *socket_connect (char *path);
+void socket_postselect (Socket * s, fd_set * rfds, fd_set * wfds);
+void socket_preselect (Socket * s, fd_set * rfds, fd_set * wfds);
+/* slide.c */
+void slide_free (Slide * s);
+void slide_consume (Slide * s, int n);
+void slide_added (Slide * s, int n);
+Slide *slide_new (int n);
+void slide_expand (Slide * s, int n);
/*
* $Log$
+ * Revision 1.5 2008/02/13 16:57:29 james
+ * *** empty log message ***
+ *
* Revision 1.4 2008/02/12 22:36:46 james
* *** empty log message ***
*
* *** empty log message ***
*
*/
+
+
+
+
+void
+tty_pre_select (TTY * t, fd_set * rfds, fd_set * wfds)
+{
+ FD_SET (t->rfd, &rfds);
+}
+
+#if 0
+int
+tty_post_select (Context * c, fd_set * rfds, fd_set * wfds)
+{
+
+ if (FD_ISSET (c->t->rfd, rfds))
+ {
+ if (vt102_dispatch (&c))
+ return -1;
+ }
+ return 0;
+}
+
+#endif