From 12fda04e4445a5e8584a22526df773eaba44711f Mon Sep 17 00:00:00 2001 From: staffcvs Date: Thu, 7 Feb 2008 11:11:14 +0000 Subject: [PATCH] *** empty log message *** --- src/ansi.c | 9 +++++++++ src/libsympathy.c | 14 +++++++++++++- src/tty.c | 4 ++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/ansi.c b/src/ansi.c index 2154413..ddce89e 100644 --- a/src/ansi.c +++ b/src/ansi.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.11 2008/02/07 11:11:14 staffcvs + * *** empty log message *** + * * Revision 1.10 2008/02/07 01:02:52 james * *** empty log message *** * @@ -587,6 +590,12 @@ ansi_dispatch (ANSI * a, VT102 * v) return -1; #endif +#if 1 + if (*buf == 1) + return 1; +#endif + + ansi_parse (a, buf, red, v); return 0; diff --git a/src/libsympathy.c b/src/libsympathy.c index 5ffd04d..6dced0d 100644 --- a/src/libsympathy.c +++ b/src/libsympathy.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * 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 +70,7 @@ testy (void) char c; TTY *t; VT102 *v; + int i; signal (SIGINT, quit); @@ -105,8 +109,16 @@ testy (void) { } #endif - if (ansi_dispatch (&a, v)) + + switch (ansi_dispatch (&a, v)) { + case -1: break; + case 1: + ansi_getsize (&a); + ansi_reset (&a); + ansi_draw (&a, &v->crt); + break; + } if (FD_ISSET (t->fd, &rfd)) { diff --git a/src/tty.c b/src/tty.c index adee8bf..0539646 100644 --- a/src/tty.c +++ b/src/tty.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.2 2008/02/07 11:11:14 staffcvs + * *** empty log message *** + * * Revision 1.1 2008/02/07 01:02:52 james * *** empty log message *** * @@ -98,6 +101,7 @@ open_fd_to_bash (void) /*thump */ return -1; case 0: /*waaah */ setenv ("TERM", "vt102", 1); + setenv ("LANG", "C", 1); execl ("/bin/sh", "-", (char *) 0); _exit (-1); } -- 2.30.2