projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from RDB: the ESC[8...t resize sequence and the ESC[18t size
[u/mdw/putty]
/
terminal.c
diff --git
a/terminal.c
b/terminal.c
index
2962b0a
..
1c817da
100644
(file)
--- a/
terminal.c
+++ b/
terminal.c
@@
-1993,8
+1993,8
@@
void term_out(void)
break;
case 8:
if (esc_nargs >= 3) {
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:
}
break;
case 9:
@@
-2017,7
+2017,7
@@
void term_out(void)
break;
case 18:
len = sprintf(buf, "\033[8;%d;%dt",
break;
case 18:
len = sprintf(buf, "\033[8;%d;%dt",
-
cols, row
s);
+
rows, col
s);
ldisc_send(buf, len, 0);
break;
case 19:
ldisc_send(buf, len, 0);
break;
case 19: