[osol-discuss] Re: vi should pick up resize during shell escape

2006-05-19 Thread Jürgen Keil
> Try it sometime; fire up vi on a file, escape via :sh > resize the window, and ^D out of the subshell. Vi > won't realize the window's size has changed. Possibly the same issue (but without a subshell): Start vi with some file, start a search via '/', resize the window, complete the '/' searc

Re: [osol-discuss] Re: vi should pick up resize during shell escape

2006-05-18 Thread James Carlson
Alan Coopersmith writes: > > The distinction is that window size isn't an environment string. It's > > a property known to the tty subsystem. Since this is shared between > > the job that's stuck in wait(2) (i.e., vi) and the job that's running, > > it's at least feasible to have vi check for cha

Re: [osol-discuss] Re: vi should pick up resize during shell escape

2006-05-18 Thread Alan Coopersmith
James Carlson wrote: Larry Becke writes: Resize the window while in vi, before you run the sub-shell The distinction is that window size isn't an environment string. It's a property known to the tty subsystem. Since this is shared between the job that's stuck in wait(2) (i.e., vi) and th

Re: [osol-discuss] Re: vi should pick up resize during shell escape

2006-05-18 Thread James Carlson
Larry Becke writes: > Resize the window while in vi, before you run the sub-shell The distinction is that window size isn't an environment string. It's a property known to the tty subsystem. Since this is shared between the job that's stuck in wait(2) (i.e., vi) and the job that's running, i

[osol-discuss] Re: vi should pick up resize during shell escape

2006-05-18 Thread Larry Becke
When you *escape* to a shell, you are running a subshell. Any changes to the environment while running a sub-shell are lost - ie not passed back to the parent when you exit. It would be like running a sub-shell that changes IFS, then expecting the changed IFS to apply to the parent shell.. Re