From: james Date: Wed, 13 Feb 2008 16:57:29 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f6fc17f7f1c349dd4e8c88d95c21e8196090a599;p=sympathy.git *** empty log message *** --- diff --git a/src/prototypes.h b/src/prototypes.h index f1f0742..635f594 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -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); diff --git a/src/tty.c b/src/tty.c index e38ee51..72b31a1 100644 --- 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