mirror of
https://github.com/tmate-io/tmate.git
synced 2025-02-24 06:11:01 +01:00
Don't scroll screen when redrawing it.
This commit is contained in:
parent
62457bce0b
commit
2a5d09f2f5
4
tty.c
4
tty.c
@ -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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -801,6 +801,7 @@ tty_cmd_clearendofscreen(struct tty *tty, struct screen *s, unused va_list ap)
|
|||||||
if (clr_eol != NULL) {
|
if (clr_eol != NULL) {
|
||||||
for (i = s->cy; i < screen_size_y(s); i++) {
|
for (i = s->cy; i < screen_size_y(s); i++) {
|
||||||
tty_puts(tty, clr_eol);
|
tty_puts(tty, clr_eol);
|
||||||
|
if (i != screen_size_y(s) - 1)
|
||||||
tty_puts(tty, cursor_down);
|
tty_puts(tty, cursor_down);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -848,6 +849,7 @@ tty_cmd_clearscreen(struct tty *tty, struct screen *s, unused va_list ap)
|
|||||||
tty_puts(tty, tparm(cursor_address, 0, 0));
|
tty_puts(tty, tparm(cursor_address, 0, 0));
|
||||||
for (i = 0; i < screen_size_y(s); i++) {
|
for (i = 0; i < screen_size_y(s); i++) {
|
||||||
tty_puts(tty, clr_eol);
|
tty_puts(tty, clr_eol);
|
||||||
|
if (i != screen_size_y(s) - 1)
|
||||||
tty_puts(tty, cursor_down);
|
tty_puts(tty, cursor_down);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user