Re: Resizing a terminal window

2010-05-07 Thread Hans Horn
David, you're very welcome! H. On 5/7/2010 12:29 PM, J. David Boyd wrote: Hans Horn writes: David, This took me forever to figure out! 'expect' does not forward SIGWINCH (http://en.wikipedia.org/wiki/SIGWINCH) unless told to do so. Add the following snippet (between lines marked with #

Re: Resizing a terminal window

2010-05-07 Thread J. David Boyd
Hans Horn writes: > David, > > This took me forever to figure out! > > 'expect' does not forward SIGWINCH > (http://en.wikipedia.org/wiki/SIGWINCH) unless told to do so. > > Add the following snippet (between lines marked with > ###) to the beginning of your 'expect' script: > > #

Re: Resizing a terminal window

2010-05-07 Thread Hans Horn
David, This took me forever to figure out! 'expect' does not forward SIGWINCH (http://en.wikipedia.org/wiki/SIGWINCH) unless told to do so. Add the following snippet (between lines marked with ###) to the beginning of your 'expect' script: #!/bin/sh # \ exec expect -f "$0"

Re: Resizing a terminal window

2010-05-07 Thread J. David Boyd
Hans Horn writes: > On 5/5/2010 8:28 AM, J. David Boyd wrote: >> Thomas Wolff writes: >> >>> Am 04.05.2010 16:03, schrieb J. David Boyd: ... Locally, I can use the mouse to resize a window, and the $COLUMNS and $LINES variables are automatically filled in. On many r

Re: Resizing a terminal window

2010-05-05 Thread Hans Horn
On 5/5/2010 8:28 AM, J. David Boyd wrote: Thomas Wolff writes: Am 04.05.2010 16:03, schrieb J. David Boyd: ... Locally, I can use the mouse to resize a window, and the $COLUMNS and $LINES variables are automatically filled in. On many remote xterm sessions, they aren't. Does anyone have an

Re: Resizing a terminal window

2010-05-05 Thread J. David Boyd
Andy Koppe writes: > J. David Boyd wrote: >> I don't think it is a Cygwin issue at all.  And, I'm certain it is a >> remote server problem, as it works on many boxes. >> >> I was just looking for some help and ideas, and the Cygwin list seemed a >> good place to start since I use Cygwin. > > Righ

Re: Resizing a terminal window

2010-05-05 Thread J. David Boyd
Thomas Wolff writes: > Am 04.05.2010 16:03, schrieb J. David Boyd: >> ... >> >> Locally, I can use the mouse to resize a window, and the $COLUMNS and >> $LINES variables are automatically filled in. >> >> On many remote xterm sessions, they aren't. >> >> Does anyone have any idea where to start f

Re: Resizing a terminal window

2010-05-04 Thread Andy Koppe
J. David Boyd wrote: > I don't think it is a Cygwin issue at all.  And, I'm certain it is a > remote server problem, as it works on many boxes. > > I was just looking for some help and ideas, and the Cygwin list seemed a > good place to start since I use Cygwin. Right. This list is all about the m

Re: Resizing a terminal window

2010-05-04 Thread Andy Koppe
Thomas Wolff wrote: > LINES and COLUMNS are legacy mechanisms which may serve as a workaround if > the system doesn't otherwise handle screen size changes properly. They > should not be needed on modern systems where the tty driver maintains the > information. Yep. > (You may note that mintty has

Re: Resizing a terminal window

2010-05-04 Thread Thomas Wolff
Am 04.05.2010 16:03, schrieb J. David Boyd: ... Locally, I can use the mouse to resize a window, and the $COLUMNS and $LINES variables are automatically filled in. On many remote xterm sessions, they aren't. Does anyone have any idea where to start figuring out what is wrong, and what I can do

Re: Resizing a terminal window

2010-05-04 Thread J. David Boyd
Andy Koppe writes: > J. David Boyd wrote: >> I'm using Cygwin to provide my own X server, and using Xterms locally, >> and to connect to remote servers. >> >> Locally, I can use the mouse to resize a window, and the $COLUMNS and >> $LINES variables are automatically filled in. >> >> On many remot

Re: Resizing a terminal window

2010-05-04 Thread Andy Koppe
J. David Boyd wrote: > I'm using Cygwin to provide my own X server, and using Xterms locally, > and to connect to remote servers. > > Locally, I can use the mouse to resize a window, and the $COLUMNS and > $LINES variables are automatically filled in. > > On many remote xterm sessions, they aren't.