[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#932569: xterm: Returning from Tek mode using escape sequence reports incorrect terminal size



On Sat, Jul 20, 2019 at 02:32:51PM -0400, Jonathan Irwin wrote:
> Package: xterm
> Version: 344-1
> Severity: normal
> 
> Dear Maintainer,
> 
> Executing the following 4 commands in xterm:
> 
> stty -a | grep rows
> printf "\033[?38h"
> printf "\033\003"
> stty -a | grep rows
> 
> to get it to switch in and then out of Tek mode using the escape
> sequences results in the following pair of stty outputs:
> 
> speed 38400 baud; rows 24; columns 80; line = 0;
> speed 38400 baud; rows 37; columns 75; line = 0;
> 
> where the first is the correct size for the VT window.  In the second
> line the size of the Tek window is being reported even though xterm is
> in VT mode.
> 
> Some perusal of the changes between stretch (where this worked
> properly) and buster indicates this may be related to the changes in
> the xterm-327y patchset released as part of xterm-328, corresponding
> to the following changelog entry:
> 
> "improve integration between configure-events and updates for reported
> screensize, in particular when switching between vt100 and tek4014
> modes."
> 
> I was able to apparently fix the problem with the following one-line
> change:

It can't hurt, but it's likely a race that is hard to see if there's
more to fix (I can't reproduce it here).

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


Reply to: