mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-09 23:28:06 -05:00
"Derek" reports that the DECSLPP report of window-size-in-pixels (CSI 14 t)
has width and height swapped. Since both a random xterm I have and <http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt> agree with him, I've changed ours. (This stuff appears to originate in dtterm, but I can't check the behaviour of that right now.) While I'm here, the are-we-iconified report (CSI 11 t) looks to have the wrong sense compared to the same sources, so swap that too. (All this has been this way since it was originally implemented in r1414, which doesn't cite a source. all-escapes is silent too.) [originally from svn r8376] [r1414 == bb1f5cec3188fd1e0329425212c149959151450e]
This commit is contained in:
parent
8d19864dc9
commit
cf3b45392d
@ -3778,7 +3778,7 @@ static void term_out(Terminal *term)
|
||||
if (term->ldisc)
|
||||
ldisc_send(term->ldisc,
|
||||
is_iconic(term->frontend) ?
|
||||
"\033[1t" : "\033[2t", 4, 0);
|
||||
"\033[2t" : "\033[1t", 4, 0);
|
||||
break;
|
||||
case 13:
|
||||
if (term->ldisc) {
|
||||
@ -3790,7 +3790,7 @@ static void term_out(Terminal *term)
|
||||
case 14:
|
||||
if (term->ldisc) {
|
||||
get_window_pixels(term->frontend, &x, &y);
|
||||
len = sprintf(buf, "\033[4;%d;%dt", x, y);
|
||||
len = sprintf(buf, "\033[4;%d;%dt", y, x);
|
||||
ldisc_send(term->ldisc, buf, len, 0);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user