]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Don't output negative numbers in the ESC[13t report.
authorSimon Tatham <anakin@pobox.com>
Sat, 7 Mar 2015 20:57:26 +0000 (20:57 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Jun 2015 08:31:54 +0000 (09:31 +0100)
commitb58a34115ac47f264c7cb684d3b66228cadce40e
tree9ea41bf1cf591a10480291657ecafaffc8bf9998
parent0db409bc07e123f62b43b1e77a516d82a6cc1cd6
Don't output negative numbers in the ESC[13t report.

A minus sign is illegal at that position in a control sequence, so if
ESC[13t should report something like ESC[3;-123;234t then we won't
accept it as input. Switch to printing the numbers as unsigned, so
that negative window coordinates are output as their 32-bit two's
complement; experimentation suggests that PuTTY does accept that on
input.

(cherry picked from commit 2422b18a0f4d758f0660503b068dd19d92de4906)
terminal.c