]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
DECCOLM fix, take 2. It turns out that my last fix wasn't causing crashes,
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 27 Mar 2003 00:22:59 +0000 (00:22 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 27 Mar 2003 00:22:59 +0000 (00:22 +0000)
but PuTTY was running out of memory, which is both easy and fatal under Mac OS
at present.  Having fixed that, I've re-instated the screen-clearing and
cursor-homing on DECCOLM, and added resetting the scroll region, since this
seems to help VTL's keypad diagram display correctly.

[originally from svn r3006]

terminal.c

index 2a9470ba935e038e7642ca873e3e9687103c6270..67a738c1a08430cff44d47efb60b04dfc5a893fc 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;
+           term->alt_t = term->marg_t = 0;
+           term->alt_b = term->marg_b = term->rows - 1;
+           move(term, 0, 0, 0);
+           erase_lots(term, FALSE, TRUE, TRUE);
            break;
          case 5:                      /* reverse video */
            /*