problem with tty size in xterm

Thomas Dickey dickey@his.com
Wed Sep 29 11:36:00 GMT 2004


On Wed, 29 Sep 2004, Thomas Wolff wrote:

> I recently reported the bug below.
> Now I've come across an issue that might be related and maybe this is
> an additional hint; it's Debian bug #202497:
> 	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=202497

Probably not.  What he's trying to describe is a timing issue with the pty
(which transmits the SIGWINCH to tell the shell how large the window is).

Positioning of the window itself is an entirely different matter
(independent of the pty).


>
> Thomas Wolff
>
>
> > When an xterm is started that has about as many rows as fit on the screen,
> > it may get positioned so that its bottom is beyond the screen bottom.
> > In this case, the tty gets the wrong information about the window size.
> >
> > For example, the following windows shortcut on a 1024x768 screen resolution:
> > D:\cygwin\usr\X11R6\bin\run.exe D:\cygwin\bin\xterm.exe -display localhost:0 -ls  -u8 -fn 10x20 -fw -misc-fixed-medium-r-normal-ko-20-200-75-75-c-200-iso10646-1 -geo 80x36
> > makes the tty pretend to have 35 rows.
> >
> > With -geo 80x33 it works.
> >
> > After a window resize, it also always works.
> >
> > More symptoms:
> >
> > Actually the problem does not seem to depend on screen vs. window size
> > but rather on the actual initial position of the window:
> > Using the "working" setup (-geo 80x33) and starting a number of
> > windows, which get positioned a little bit lower every time, the
> > problem eventually shows up again
> >
> > On the other hand, on a 1600x1200 screen resolution, the problem
> > may also occurs, even if the window is fully visible.
> >
> > Thomas Wolff
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



More information about the Cygwin-xfree mailing list