mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 04:55:02 -05:00
CSI 3 J now clears the scrollback, as in xterm.
[originally from svn r6847] [this svn revision also touched putty-wishlist]
This commit is contained in:
parent
2afdb02660
commit
9c954238bd
@ -3346,11 +3346,18 @@ static void term_out(Terminal *term)
|
|||||||
break;
|
break;
|
||||||
case 'J': /* ED: erase screen or parts of it */
|
case 'J': /* ED: erase screen or parts of it */
|
||||||
{
|
{
|
||||||
unsigned int i = def(term->esc_args[0], 0) + 1;
|
unsigned int i = def(term->esc_args[0], 0);
|
||||||
|
if (i == 3) {
|
||||||
|
/* Erase Saved Lines (xterm)
|
||||||
|
* This follows Thomas Dickey's xterm. */
|
||||||
|
term_clrsb(term);
|
||||||
|
} else {
|
||||||
|
i++;
|
||||||
if (i > 3)
|
if (i > 3)
|
||||||
i = 0;
|
i = 0;
|
||||||
erase_lots(term, FALSE, !!(i & 2), !!(i & 1));
|
erase_lots(term, FALSE, !!(i & 2), !!(i & 1));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
term->disptop = 0;
|
term->disptop = 0;
|
||||||
seen_disp_event(term);
|
seen_disp_event(term);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user