Re: gnome-terminal vs. vi



Miguel de Icaza wrote:
> 
> > At the very least, they should be exported with correct values --- but
> > $LINES and $COLUMNS exist only because early System V didn't have
> > TIOC[GS]WINSZ, they were a cheap substitute.  They have very little use
> > on modern systems and shopuld probably be dropped except on those older
> > systems (OTOH I would not expect GNOME to build on SVR2).
> 
> So, I went to remove this on the gnome-terminal code, and found
> something very interesting.
> 
> Gnome-terminal was actually nuking any preset values for COLUMNS and
> LINES.  I see my bash script is setting those up, I do not know from
> where.
> 
> But it seems to me like this is a problem in the Solaris setup people
> are using, not with Gnome-Terminal.

Hmm. $LINES and $COLUMNS are *not* set in my gnome-terminals.
If I set $LINES manually, I get the correct behaviour from vi.

So, (excuse my ignorance), this must mean vi is picking up TIOC[GS]WINSZ
on my system, and this contains the wrong value.

Does gnome-terminal set this? What is it/how can I check it/did I do
something wrong/etc/etc? :-)

-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~ Paul Barnfather ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
|  plb@clanger9.demon.co.uk  paul.barnfather@northern-electric.co.uk |
|      __           http://www.clanger9.demon.co.uk    .             |
     o--o-... 75TS                                    o'~o... 750SS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]