problem resizing tunneled xterm

Thomas Dickey dickey@his.com
Mon May 17 11:26:00 GMT 2004


On Mon, 17 May 2004, Kris Thielemans wrote:

>
> > Well, on the local xterm, I didn't ssh, su, login or whatever. It's just
> > a local terminal.
> >
> > However, typing 'resize' indeed solves the problem. Thanks for the help!
>
>
> a final note. 'resize' works around the problem on the local (i.e. cygwin)
> terminal, but not for an xterm on my debian system. indeed, they're very
> different implementations. on cygwin, it sets TERMCAP, while on debian it
> sets COLUMNS and ROWS environment variables. Happily, pasting the TERMCAP
> from the cygwin xterm to the debian xterm gets things properly there as
> well.
>
> I'm not sure what resize is doing aside from those environment variables
> (i.e. I can't see the escape sequences), but maybe my problem is then
> related to incorrect TERMCAP settings? (TERMCAP is normally not set when I
> log in to my debian system (xterm -ls).

That's puzzling: xterm tries to set $TERMCAP (if it is linked with a
termcap library) since termcap-based applications typically do not pay
any attention to other ways of getting the screen size.  But termcap
on Linux isn't (especially Debian) used much.

If you have an application that uses termcap, it's probably worth taking
the time to compile 'resize' linked with the termcap library as well.
(xterm's configure script tries to find a termcap library in preference
to terminfo for this reason).

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



More information about the Cygwin-xfree mailing list