RE: problem resizing tunneled xterm

2004-05-17 Thread Kris Thielemans

 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).

I realise these last issues are probably not an CYGWIN/Xfree thing, but I
thought to let you know anyway.

Kris



RE: problem resizing tunneled xterm

2004-05-17 Thread Thomas Dickey
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


RE: problem resizing tunneled xterm

2004-05-15 Thread Kris Thielemans
Hi Thomas,

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!

Kris

 
  I now have the same behaviour on a local xterm (on an XP 
 SP1 machine 
  running xorg Xwin 6.6.0.0-8, rest is latest cygwin). The 
 funny thing 
  is that it happens in one xterm only, and I cannot reproduce it in 
  others... In fact, I don't think I resized that xterm yet 
 (started it 
  with xterm -ls -sl 3000 -sb by the way).
 
 That sounds like permissions: signals don't generally 
 propagate across su and other things that change the 
 ownership of the terminal.  You can usually work around those 
 by running resize (which uses escape sequences to find the 
 actual size of the xterm, and does the equivalent of an stty 
 to update your local terminal-size values).
 



RE: problem resizing tunneled xterm

2004-05-14 Thread Kris Thielemans
Hi,
further on this.

I now have the same behaviour on a local xterm (on an XP SP1 machine running
xorg Xwin 6.6.0.0-8, rest is latest cygwin). The funny thing is that it
happens in one xterm only, and I cannot reproduce it in others... In fact, I
don't think I resized that xterm yet (started it with xterm -ls -sl 3000 -sb
by the way).

sorry!

Kris

 
  I run a remote xterm via
 
  ssh -Y mydebianlinuxsystem xterm /dev/null
 
  this works perfectly fine, except when I resize the window (in
 particular:
  make it wider). It seems that xterm/bash doesn't pick up the new size
  properly. Although output now does fill the new size, I have
 trouble with
  command recall in bash. Pressing uparrow to get to a long
 command line (i.e.
  longer than the size of the original window), results in
 garbled display.
  The line displays truncated at its original size with bits at
 the start and
  end missing. Pressing left-arrow etc results in lots of fun
 effects. Ctrl-L
  does display the whole line, but with line breaks at the original width.
 
  Note that for local xterms, this problem does not exist.



problem resizing tunneled xterm

2004-05-13 Thread Kris Thielemans
Hi

I run a remote xterm via

ssh -Y mydebianlinuxsystem xterm /dev/null

this works perfectly fine, except when I resize the window (in particular:
make it wider). It seems that xterm/bash doesn't pick up the new size
properly. Although output now does fill the new size, I have trouble with
command recall in bash. Pressing uparrow to get to a long command line (i.e.
longer than the size of the original window), results in garbled display.
The line displays truncated at its original size with bits at the start and
end missing. Pressing left-arrow etc results in lots of fun effects. Ctrl-L
does display the whole line, but with line breaks at the original width.

Note that for local xterms, this problem does not exist.

any suggestions?

Thanks!

(running NT 4.0 sp6a and the latest cygwin/xorg)

Kris Thielemans
(kris.thielemans at imperial.ac.uk)
Hammersmith Imanet (formerly IRSL)
Cyclotron Building
Hammersmith Hospital
Du Cane Road
London W12 ONN, United Kingdom

web site address: http://www.hammersmithimanet.com/~kris



Re: problem resizing tunneled xterm

2004-05-13 Thread Alexander Gottwald
On Thu, 13 May 2004, Kris Thielemans wrote:

 Hi
 
 I run a remote xterm via
 
 ssh -Y mydebianlinuxsystem xterm /dev/null
 
 this works perfectly fine, except when I resize the window (in particular:
 make it wider). It seems that xterm/bash doesn't pick up the new size
 properly. Although output now does fill the new size, I have trouble with
 command recall in bash. Pressing uparrow to get to a long command line (i.e.
 longer than the size of the original window), results in garbled display.
 The line displays truncated at its original size with bits at the start and
 end missing. Pressing left-arrow etc results in lots of fun effects. Ctrl-L
 does display the whole line, but with line breaks at the original width.
 
 Note that for local xterms, this problem does not exist.

Maybe the local xterm is newer and already contains a fix for this problem. 
I can't think of a different reason why the remote xterm would behave different.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: problem resizing tunneled xterm

2004-05-13 Thread Kris Thielemans


 Maybe the local xterm is newer and already contains a fix for
 this problem.
 I can't think of a different reason why the remote xterm would
 behave different.


ok. the debian xterm I'm using is version XFree86 4.2.0(165), while the
cygwin is XFree86 4.4(185). Not sure if I can update this right now though,
so I won't be able to tell you if that was it. sorry.

thanks!

Kris



RE: problem resizing tunneled xterm

2004-05-13 Thread Alexander Gottwald
On Thu, 13 May 2004, Kris Thielemans wrote:

 
 
  Maybe the local xterm is newer and already contains a fix for
  this problem.
  I can't think of a different reason why the remote xterm would
  behave different.
 
 
 ok. the debian xterm I'm using is version XFree86 4.2.0(165), while the
 cygwin is XFree86 4.4(185). Not sure if I can update this right now though,
 so I won't be able to tell you if that was it. sorry.

Maybe the xterm maintainer Thomas Dickey can shed a light on this. I'll CC him.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: problem resizing tunneled xterm

2004-05-13 Thread Thomas Dickey
On Thu, 13 May 2004, Alexander Gottwald wrote:

 On Thu, 13 May 2004, Kris Thielemans wrote:

 
  
   Maybe the local xterm is newer and already contains a fix for
   this problem.
   I can't think of a different reason why the remote xterm would
   behave different.
  
 
  ok. the debian xterm I'm using is version XFree86 4.2.0(165), while the
  cygwin is XFree86 4.4(185). Not sure if I can update this right now though,
  so I won't be able to tell you if that was it. sorry.

 Maybe the xterm maintainer Thomas Dickey can shed a light on this. I'll CC him.

offhand I don't recall any changes that would affect that (I'll take a
closer look when I'm home).

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