Patch from RDB: the ESC[8...t resize sequence and the ESC[18t size
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 8 Jan 2002 09:56:31 +0000 (09:56 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 8 Jan 2002 09:56:31 +0000 (09:56 +0000)
report should both quote rows before columns, not vice versa.

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

terminal.c

index 2962b0a..1c817da 100644 (file)
@@ -1993,8 +1993,8 @@ void term_out(void)
                                break;
                              case 8:
                                if (esc_nargs >= 3) {
-                                   request_resize(def(esc_args[1], cfg.width),
-                                                  def(esc_args[2], cfg.height));
+                                   request_resize(def(esc_args[2], cfg.width),
+                                                  def(esc_args[1], cfg.height));
                                }
                                break;
                              case 9:
@@ -2017,7 +2017,7 @@ void term_out(void)
                                break;
                              case 18:
                                len = sprintf(buf, "\033[8;%d;%dt",
-                                             cols, rows);
+                                             rows, cols);
                                ldisc_send(buf, len, 0);
                                break;
                              case 19: