diff options
author | james <> | 2008-02-26 23:23:17 +0000 |
---|---|---|
committer | james <> | 2008-02-26 23:23:17 +0000 |
commit | f2b8bf1dc0714a6aacb11ec9634e856a8f4cab03 (patch) | |
tree | be3b4f30343a87fefbfdb6e7d433a97a7cea75ac /src/terminal.c | |
parent | 3aef93277df7fe073486ec406a5fe55d3a45e504 (diff) | |
download | sympathy-f2b8bf1dc0714a6aacb11ec9634e856a8f4cab03.tar.gz sympathy-f2b8bf1dc0714a6aacb11ec9634e856a8f4cab03.tar.bz2 sympathy-f2b8bf1dc0714a6aacb11ec9634e856a8f4cab03.zip |
*** empty log message ***
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/terminal.c b/src/terminal.c index 9a3290e..d0cde99 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.10 2008/02/26 23:23:17 james + * *** empty log message *** + * * Revision 1.9 2008/02/15 03:32:07 james * *** empty log message *** * @@ -97,11 +100,15 @@ terminal_close (TTY * _t) set_nonblocking (t->wfd); - t->xmit (_t, "\033[r", 3); - t->xmit (_t, "\033[0m", 4); - i = sprintf (buf, "\033[%d;%dH", CRT_ROWS + 1, 1); + t->xmit (_t,"\033%@",3); //Leave UTF-8 + t->xmit (_t,"\033(B",3); //US-ASCII in G0 + t->xmit (_t,"\033)B",3); //US-ASCII in G1 + t->xmit (_t,"\017",1); //Select G0 + t->xmit (_t, "\033[r", 3); //No margins + t->xmit (_t, "\033[0m", 4); //Default attributes + i = sprintf (buf, "\033[%d;%dH", CRT_ROWS + 1, 1); //Cursor to bottom t->xmit (_t, buf, i); - t->xmit (_t, "\033[J", 3); + t->xmit (_t, "\033[J", 3); //erase rest of screen set_blocking (t->rfd); set_blocking (t->wfd); |