From owner-freebsd-questions@FreeBSD.ORG Sat Jul 26 13:04:05 2008 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 4B091106568D for ; Sat, 26 Jul 2008 13:04:05 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id EDDAC8FC15 for ; Sat, 26 Jul 2008 13:04:04 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180063053.adsl.alicedsl.de [85.180.63.53]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1KMjRG0MHv-0000tO; Sat, 26 Jul 2008 15:03:58 +0200 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1KMjRF-0002uV-L2; Sat, 26 Jul 2008 15:03:57 +0200 Date: Sat, 26 Jul 2008 15:03:57 +0200 From: Bertram Scharpf To: Wojciech Puchar , freebsd-questions@freebsd.org Message-ID: <20080726130357.GB10056@marge.bs.l> Mail-Followup-To: Wojciech Puchar , freebsd-questions@freebsd.org References: <20080724133631.GA31077@marge.bs.l> <20080724165727.O3416@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080724165727.O3416@wojtek.tensor.gdynia.pl> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX19F0hMapOp6UrBHqZqjngRK+WCIWiIFLWJefkd 8QgHU5YJtIdDmkIjHm1xvdFW/PPlicLrOsySnqDShUVAO4HRxa KUtNLWaBFuXPfpeu6JPjs6D+0rHC46HZQIc/jL0za0= Cc: Subject: Re: Switch to alternate screen buffer 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: Sat, 26 Jul 2008 13:04:05 -0000 Hi, Am Donnerstag, 24. Jul 2008, 16:57:40 +0200 schrieb Wojciech Puchar: >> I know from some old Linux installations that Less and Vim are able to >> switch to an alternate screen buffer. They use the escape sequences >> "\e[?1047h" and "\e[?1047l" to switch back respectively. >> >> How can I activate this in FreeBSD? > > no idea but do > > someprg 2>&1|vim - No. I will not waive. This is not Microsoft here. Edit /usr/share/misc/termcap. Change the following entry: xterm|xterm-color|X11 terminal emulator:\ :ti=\E[?47h:te=\E[?47l:tc=xterm-xfree86: Don't forget to execute "cap_mkdb termcap". No need to get over with a poor workaround. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de