]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
DECCOLM should clear the screen and home the cursor, so it does now.
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 26 Mar 2003 21:14:39 +0000 (21:14 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 26 Mar 2003 21:14:39 +0000 (21:14 +0000)
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.

[originally from svn r3001]

terminal.c

index 2a9470ba935e038e7642ca873e3e9687103c6270..aa4d749f4dc7049e0a57aeee424422a3c65aa25a 100644 (file)
@@ -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 */
            /*