From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 13:36:33 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 06343106566C for ; Thu, 24 Jul 2008 13:36:33 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.freebsd.org (Postfix) with ESMTP id A7D4D8FC15 for ; Thu, 24 Jul 2008 13:36:32 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180061204.adsl.alicedsl.de [85.180.61.204]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1KM0zf3K5S-0005Ch; Thu, 24 Jul 2008 15:36:31 +0200 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1KM0zf-0008AW-8s for freebsd-questions@freebsd.org; Thu, 24 Jul 2008 15:36:31 +0200 Date: Thu, 24 Jul 2008 15:36:31 +0200 From: Bertram Scharpf To: freebsd-questions@freebsd.org Message-ID: <20080724133631.GA31077@marge.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX1+qmNfN+NznpZnzR4PsZ+xmFVEWYwSKFKatsvK jmyChJ/MXiyCmDBQXTe7A6fyCC2xY8THXdinlA8NN8510xU93Q uAnmvcJvDvdBjmuv8UqL1qbrGvpH/kt2wF91GEfEWo= Subject: 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: Thu, 24 Jul 2008 13:36:33 -0000 Hi, this is difficult to google for. In a terminal window I oftenly pipe some progams output to vim or to less: $ someprg | vim - When the program fails and outputs an error message to stderr this will be overwritten by Vim. 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[?1049h" and "\e[?1049l" to switch back respectively. How can I activate this in FreeBSD? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de