chiark / gitweb /
*** empty log message ***
authorjames <james>
Wed, 13 Feb 2008 16:57:29 +0000 (16:57 +0000)
committerjames <james>
Wed, 13 Feb 2008 16:57:29 +0000 (16:57 +0000)
src/prototypes.h
src/tty.c

index f1f07421664b6528ef4f2d5e6d235c322fa336f0..635f594355e12ba2bb680eee04e2078d2e044962 100644 (file)
@@ -6,8 +6,12 @@ void ansi_set_color (ANSI * a, int color);
 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);
@@ -29,10 +33,12 @@ void html_render (FILE * f, CRT_CA 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);
@@ -74,6 +80,8 @@ void history_add (History * h, CRT_CA * c);
 /* 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[]);
@@ -91,3 +99,17 @@ void set_nonblocking (int fd);
 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);
index e38ee515902fac3f517a9258b4538093d36e522b..72b31a12f161cfe615255166559466a585aaeba2 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $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 ***
  *
@@ -17,3 +20,27 @@ static char rcsid[] = "$Id$";
  * *** 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