From 6536be44f333d140bc418e7ee04264928882c530 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 26 Mar 2003 21:14:39 +0000 Subject: [PATCH] DECCOLM should clear the screen and home the cursor, so it does now. Correct interactions with DECOM and DECSTBM not investigated. Should fix bug "deccolm-cls", but I'll leave it open till I've checked the interactions. git-svn-id: svn://svn.tartarus.org/sgt/putty@3001 cda61777-01e9-0310-a592-d414129be87e --- terminal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminal.c b/terminal.c index 2a9470ba..aa4d749f 100644 --- a/terminal.c +++ b/terminal.c @@ -1181,6 +1181,10 @@ static void toggle_mode(Terminal *term, int mode, int query, int state) if (!term->cfg.no_remote_resize) request_resize(term->frontend, state ? 132 : 80, term->rows); term->reset_132 = state; + erase_lots(term, FALSE, TRUE, TRUE); + /* XXX Interaction with DECOM? DECSTBM? */ + move(term, 0, 0, 0); + term->seen_disp_event = 1; break; case 5: /* reverse video */ /* -- 2.11.0