From: jacob Date: Sat, 20 Dec 2008 19:43:20 +0000 (+0000) Subject: "Derek" reports that the DECSLPP report of window-size-in-pixels (CSI 14 t) X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/9657ac3d30e1c8d3aefa13054af5851fe2f3c3d2 "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 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.) git-svn-id: svn://svn.tartarus.org/sgt/putty@8376 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/terminal.c b/terminal.c index ef40de2b..19d5a750 100644 --- a/terminal.c +++ b/terminal.c @@ -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;