diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/terminal.c b/src/terminal.c index 7bbc761..03ac5d4 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.5 2008/02/13 18:05:06 james + * *** empty log message *** + * * Revision 1.4 2008/02/13 16:57:29 james * *** empty log message *** * @@ -82,10 +85,11 @@ terminal_close (TTY * _t) set_nonblocking (t->wfd); - t->xmit (t, "\033[r", 3); - t->xmit (t, "\033[0m", 4); + 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, buf, i); + t->xmit (_t, buf, i); + t->xmit (_t, "\033[J", 3); set_blocking (t->rfd); set_blocking (t->wfd); @@ -149,7 +153,7 @@ terminal_dispatch (void) terminal_winches = 0; for (t = terminal_list; t; t = t->next) - terminal_getsize (t); + terminal_getsize ((TTY *)t); } |