X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=sympathy.git;a=blobdiff_plain;f=test%2Ftest.c;h=d8be52fae415230a9b12be5b843aaca726a2fd32;hp=af12ee9857acb021ab49e91eb914f6ecfe50facc;hb=564cf3eb28dfc5df9faae18ef7bd7d4384e2f11c;hpb=d822b5ed5d59a25a5ee7fd1478b248b6f5d7fbd7 diff --git a/test/test.c b/test/test.c index af12ee9..d8be52f 100644 --- a/test/test.c +++ b/test/test.c @@ -6,11 +6,19 @@ * */ -static char rcsid[] = - "$Id$"; +static char rcsid[] = "$Id: test.c,v 1.8 2008/02/27 09:42:22 james Exp $"; /* - * $Log$ + * $Log: test.c,v $ + * Revision 1.8 2008/02/27 09:42:22 james + * *** empty log message *** + * + * Revision 1.7 2008/02/20 20:16:07 james + * *** empty log message *** + * + * Revision 1.6 2008/02/15 23:52:12 james + * *** empty log message *** + * * Revision 1.5 2008/02/14 10:34:30 james * *** empty log message *** * @@ -43,47 +51,5 @@ static char rcsid[] = int main (int argc, char *argv[]) { - fd_set rfds, wfds; - ANSI a = { 0 }; - Context c; - - - c.t = ptty_open (NULL, NULL); - c.v = vt102_new (); - c.h = history_new (200); - c.l = file_log_new ("log"); - c.k = keydis_vt102_new (&c); - - terminal_register_handlers (); - a.terminal = terminal_open (0, 1); - - ansi_reset (&a, NULL); - - for (;;) - { - struct timeval tv = { 10, 0 }; - - FD_ZERO (&rfds); - FD_ZERO (&wfds); - - tty_pre_select (c.t, &rfds, &wfds); - tty_pre_select (a.terminal, &rfds, &wfds); - - - select (FD_SETSIZE, &rfds, &wfds, NULL, &tv); - - if (FD_ISSET (c.t->rfd, &rfds)) - { - if (vt102_dispatch(&c)) break; - } - - ansi_dispatch (&a, &c); - ansi_update (&a, &c); - - - } - - ansi_terminal_reset (&a); - terminal_atexit (); - printf ("QUAT\n"); + return 0; }