From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 14:58:03 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 F3F071065670 for ; Thu, 24 Jul 2008 14:58:02 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 312838FC1A for ; Thu, 24 Jul 2008 14:58:01 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m6OEvejW003420; Thu, 24 Jul 2008 16:57:40 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m6OEven6003417; Thu, 24 Jul 2008 16:57:40 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 24 Jul 2008 16:57:40 +0200 (CEST) From: Wojciech Puchar To: Bertram Scharpf In-Reply-To: <20080724133631.GA31077@marge.bs.l> Message-ID: <20080724165727.O3416@wojtek.tensor.gdynia.pl> References: <20080724133631.GA31077@marge.bs.l> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org 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: Thu, 24 Jul 2008 14:58:03 -0000 > 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? no idea but do someprg 2>&1|vim -