Date: Sat, 3 Nov 2007 00:14:13 +0100 From: Pieter de Goeje <pieter@degoeje.nl> To: freebsd-questions@freebsd.org Cc: Jerry McAllister <jerrymc@msu.edu>, Yuri <yuri@rawbw.com>, yuri@tsoft.com Subject: Re: vim doesn't preserve the terminal content Message-ID: <200711030014.14221.pieter@degoeje.nl> In-Reply-To: <20071102222500.GB49562@gizmo.acns.msu.edu> References: <1194038987.472b96cb09026@webmail.rawbw.com> <20071102222500.GB49562@gizmo.acns.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 02 November 2007, Jerry McAllister wrote: > On Fri, Nov 02, 2007 at 02:29:47PM -0700, Yuri wrote: > > I use vim both on Linux and FreeBSD. > > On Linux after I exit vim original screen content is restored. > > On FreeBSD vim leaves the last content viewed in vim. > > > > How do I make vim preserve the screen? The easiest way is to use a terminal with standard support for alternate screens, like rxvt. > > I don't know how to do that, but it is one Lunix (bash?) feature > that I hate and would like to know how to change it to function > the way it does under FreeBSD (tcsh). This has to do with the terminal capability strings ti and te. Xterm and the FeeBSD console don't have them defined in /etc/termcap (or they are empty). I don't know if syscons even supports alternate screens. Here is some (linux specific) info about it: http://www.shallowsky.com/linux/noaltscreen.html Hope this helps, Pieter de Goeje
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711030014.14221.pieter>