diff options
Diffstat (limited to 'src/libsympathy.c')
-rw-r--r-- | src/libsympathy.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/libsympathy.c b/src/libsympathy.c index 5c24ef2..8f28c17 100644 --- a/src/libsympathy.c +++ b/src/libsympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.7 2008/02/07 00:39:13 james + * *** empty log message *** + * * Revision 1.6 2008/02/06 20:26:58 james * *** empty log message *** * @@ -59,7 +62,7 @@ testy (void) fd_set rfd; int fd; char c; - TTY *y; + TTY *t; VT102 *v; @@ -92,13 +95,15 @@ testy (void) FD_SET (t->fd, &rfd); FD_SET (a.fd, &rfd); - if (select (t->fd + 1, &rfd, NULL, NULL, &tv) < 0) - continue; + select (t->fd + 1, &rfd, NULL, NULL, &tv); +#if 0 if (FD_ISSET (a.fd, &rfd)) { - if (ansi_dispatch(&a,v)) break; } +#endif + if (ansi_dispatch(&a,v)) + break; if (FD_ISSET (t->fd, &rfd)) { if (vt102_dispatch (v)) break; @@ -109,8 +114,9 @@ testy (void) had_winch = 0; ansi_getsize (&a); ansi_reset (&a); - ansi_draw (&a, &v.crt); + ansi_draw (&a, &v->crt); } + ansi_draw (&a, &v->crt); } tcsetattr (0, TCSANOW, &old); printf ("QUAT\n"); |