diff options
author | james <> | 2008-02-07 00:39:13 +0000 |
---|---|---|
committer | james <> | 2008-02-07 00:39:13 +0000 |
commit | 10e44cc4a65158fb6aaab3428a747ad4e5ead2f9 (patch) | |
tree | 2aef7fd3972bd6a8b67ee264c2b8c4b73e03e615 /src/libsympathy.c | |
parent | b4c47719823e9907f6040e1e899b927cbeb8282e (diff) | |
download | sympathy-10e44cc4a65158fb6aaab3428a747ad4e5ead2f9.tar.gz sympathy-10e44cc4a65158fb6aaab3428a747ad4e5ead2f9.tar.bz2 sympathy-10e44cc4a65158fb6aaab3428a747ad4e5ead2f9.zip |
*** empty log message ***
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"); |