Re: [ILUG] Stop vi clearing screen on exit

From: Colm Buckley (colm at domain tuatha.org)
Date: Wed 16 May 2001 - 15:22:17 IST


On Wednesday 16 May 2001 15:14, Conor Daly wrote:

> A gnome term returns "xterm" in $TERM but that doesn't necessarily
> indicate what termcap entry it's using.

Actually, it does. Curses uses the TERM variable to *determine* which
termcap/terminfo entry to use. It's not the gnome-terminal which
reads termcap/terminfo, it's curses-using progrms (like vim).

However, it does appear from a little googling that gnome-terminal
doesn't accept the titeInhibit resource, so this might be a blind
alley.

However, a lot of poking in the vim help files reveals that putting:

:set t_ti= t_te=

in your .vimrc will inhibit the sending of these codes, so that might
work for you. Note : other curses programs like less and whatnot
will still exhibit the old behaviour - if you want this to apply to
all programs, you could edit the terminfo source and change the smcup
and rmcup entries for xterm... (see "man tic" and "man terminfo").

            Colm

-- 
Colm Buckley  at domain  NewWorld Commerce
Business: +353 1 4334334  / colm at domain nwcgroup.com / http://www.nwcgroup.com/
Personal: +353 87 2469146 / colm at domain tuatha.org / http://www.tuatha.org/~colm/
Shin: a device for finding furniture in the dark.


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:19 GMT