aboutsummaryrefslogtreecommitdiffstats
path: root/src/terminal.c
diff options
context:
space:
mode:
authorjames <>2008-02-28 16:58:49 +0000
committerjames <>2008-02-28 16:58:49 +0000
commit68f1170ace397c32f9c80a6b7cb89388d88743f2 (patch)
tree3dbafbe88e81f2ba7c8c877c91a1f31d04941864 /src/terminal.c
parent57dd88f415d70356e41f2bfd5c00c250bd085723 (diff)
downloadsympathy-68f1170ace397c32f9c80a6b7cb89388d88743f2.tar.gz
sympathy-68f1170ace397c32f9c80a6b7cb89388d88743f2.tar.bz2
sympathy-68f1170ace397c32f9c80a6b7cb89388d88743f2.zip
*** empty log message ***
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 72a7764..a3be09b 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.12 2008/02/28 16:57:52 james
+ * *** empty log message ***
+ *
* Revision 1.11 2008/02/26 23:56:12 james
* *** empty log message ***
*
@@ -110,7 +113,7 @@ terminal_close (TTY * _t)
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
+ 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