From af5157ae7f8789a9026c0cb7f982dd3e4dedbc72 Mon Sep 17 00:00:00 2001 From: james <> Date: Wed, 12 Mar 2008 10:47:26 +0000 Subject: @@ --- src/terminal.c | 19 ++++++------------- 1 file 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 -- cgit v1.2.3