diff options
author | staffcvs <> | 2008-02-07 11:11:14 +0000 |
---|---|---|
committer | staffcvs <> | 2008-02-07 11:11:14 +0000 |
commit | a0799281f0f7d0f8cd3e69a861515f4efa40a453 (patch) | |
tree | f4c0270d19d3b6769a8e90e26cee7e8ec825b73a /src | |
parent | f300f5ca0eee189735e1103f8e93d57331aacb11 (diff) | |
download | sympathy-a0799281f0f7d0f8cd3e69a861515f4efa40a453.tar.gz sympathy-a0799281f0f7d0f8cd3e69a861515f4efa40a453.tar.bz2 sympathy-a0799281f0f7d0f8cd3e69a861515f4efa40a453.zip |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/ansi.c | 9 | ||||
-rw-r--r-- | src/libsympathy.c | 14 | ||||
-rw-r--r-- | src/tty.c | 4 |
3 files changed, 26 insertions, 1 deletions
@@ -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)) { @@ -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); } |