chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / libsympathy.c
index 5ffd04d01127633467c3ad43b4aa5c1c1d196301..ac2f62112aaeee283722bfc6a77eaf8956c86e01 100644 (file)
@@ -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;
         }