diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-26 07:23:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-26 07:23:21 +0000 |
commit | 2a5d09f2f5f7e4dfcef039f0b59d9cf4beac2f3f (patch) | |
tree | 28da88c878aaf82f1cd79b6ec11903ae0950aaa0 /tty.c | |
parent | 62457bce0b6d23c1b6a8206582ac3dd206d4225d (diff) | |
download | rtmux-2a5d09f2f5f7e4dfcef039f0b59d9cf4beac2f3f.tar.gz rtmux-2a5d09f2f5f7e4dfcef039f0b59d9cf4beac2f3f.tar.bz2 rtmux-2a5d09f2f5f7e4dfcef039f0b59d9cf4beac2f3f.zip |
Don't scroll screen when redrawing it.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.44 2008-09-26 06:45:28 nicm Exp $ */ +/* $Id: tty.c,v 1.45 2008-09-26 07:23:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -801,7 +801,8 @@ tty_cmd_clearendofscreen(struct tty *tty, struct screen *s, unused va_list ap) if (clr_eol != NULL) { for (i = s->cy; i < screen_size_y(s); i++) { tty_puts(tty, clr_eol); - tty_puts(tty, cursor_down); + if (i != screen_size_y(s) - 1) + tty_puts(tty, cursor_down); } } else { for (i = s->cx; i < screen_size_y(s); i++) @@ -848,7 +849,8 @@ tty_cmd_clearscreen(struct tty *tty, struct screen *s, unused va_list ap) tty_puts(tty, tparm(cursor_address, 0, 0)); for (i = 0; i < screen_size_y(s); i++) { tty_puts(tty, clr_eol); - tty_puts(tty, cursor_down); + if (i != screen_size_y(s) - 1) + tty_puts(tty, cursor_down); } } else { tty_puts(tty, tparm(cursor_address, 0, 0)); |