DECCOLM should clear the screen and home the cursor, so it does now.
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 26 Mar 2003 21:14:39 +0000 (21:14 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3001 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 2a9470b..aa4d749 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 */
            /*