From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 23:14:25 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CBE316A417 for ; Fri, 2 Nov 2007 23:14:25 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb7:ef56]) by mx1.freebsd.org (Postfix) with ESMTP id 820FE13C491 for ; Fri, 2 Nov 2007 23:14:24 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id lA2NEEUo013907; Sat, 3 Nov 2007 00:14:14 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Sat, 3 Nov 2007 00:14:13 +0100 User-Agent: KMail/1.9.7 References: <1194038987.472b96cb09026@webmail.rawbw.com> <20071102222500.GB49562@gizmo.acns.msu.edu> In-Reply-To: <20071102222500.GB49562@gizmo.acns.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711030014.14221.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Jerry McAllister , Yuri , yuri@tsoft.com Subject: Re: vim doesn't preserve the terminal content X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 23:14:25 -0000 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