X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsympathy.c;h=ac2f62112aaeee283722bfc6a77eaf8956c86e01;hb=3684640e6bdec97cb1b60a34d03e8cde63149215;hp=5ffd04d01127633467c3ad43b4aa5c1c1d196301;hpb=c41d259a13d31aa9a1698ef5f22e06d2694ba85e;p=sympathy.git diff --git a/src/libsympathy.c b/src/libsympathy.c index 5ffd04d..ac2f621 100644 --- a/src/libsympathy.c +++ b/src/libsympathy.c @@ -11,6 +11,12 @@ static char rcsid[] = /* * $Log$ + * Revision 1.10 2008/02/07 11:32:41 james + * *** empty log message *** + * + * Revision 1.9 2008/02/07 11:11:14 staffcvs + * *** empty log message *** + * * Revision 1.8 2008/02/07 00:43:27 james * *** empty log message *** * @@ -67,6 +73,7 @@ testy (void) char c; TTY *t; VT102 *v; + int i; signal (SIGINT, quit); @@ -89,7 +96,7 @@ testy (void) t = tty_new_test (); - v = vt102_new (t); + v = vt102_new (); FD_ZERO (&rfd); for (;;) @@ -105,12 +112,20 @@ testy (void) { } #endif - if (ansi_dispatch (&a, v)) + + switch (ansi_dispatch (&a, v,t)) { + case -1: break; + case 1: + ansi_getsize (&a); + ansi_reset (&a); + ansi_draw (&a, &v->crt); + break; + } if (FD_ISSET (t->fd, &rfd)) { - if (vt102_dispatch (v)) + if (vt102_dispatch (v,t)) break; }