diff options
author | james <> | 2008-03-12 10:47:26 +0000 |
---|---|---|
committer | james <> | 2008-03-12 10:47:26 +0000 |
commit | af5157ae7f8789a9026c0cb7f982dd3e4dedbc72 (patch) | |
tree | 80c53c58a04eb37e468f4aa12de71acbfee9d13f | |
parent | 236863f163db6a700db2d2ea780688f20c00d316 (diff) | |
download | sympathy-af5157ae7f8789a9026c0cb7f982dd3e4dedbc72.tar.gz sympathy-af5157ae7f8789a9026c0cb7f982dd3e4dedbc72.tar.bz2 sympathy-af5157ae7f8789a9026c0cb7f982dd3e4dedbc72.zip |
@@
-rw-r--r-- | src/terminal.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/terminal.c b/src/terminal.c index 9f02a76..301ea74 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -11,6 +11,9 @@ static char rcsid[] = /* * $Log$ + * Revision 1.24 2008/03/12 10:47:26 james + * @@ + * * Revision 1.23 2008/03/12 01:30:23 james * *** empty log message *** * @@ -143,21 +146,11 @@ terminal_close (TTY * _t) 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[?25h", 6); // Show cursor t->xmit (_t, "\033[r", 3); // No margins t->xmit (_t, "\033[0m", 4); // Default attributes - i = sprintf (buf, "\033[%d;%dH", t->displayed_length ? (t->displayed_length + 1) : (CRT_ROWS + 1), 1); // Cursor - // - // - // - // - // - // - // - // - // - // - // to - // bottom + i = sprintf (buf, "\033[%d;%dH", t->displayed_length ? (t->displayed_length + 1) : (CRT_ROWS + 1), 1); + // Cursor to bottom t->xmit (_t, buf, i); t->xmit (_t, "\033[J", 3); // erase rest of screen |