Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2008 16:57:40 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Bertram Scharpf <lists@bertram-scharpf.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Switch to alternate screen buffer
Message-ID:  <20080724165727.O3416@wojtek.tensor.gdynia.pl>
In-Reply-To: <20080724133631.GA31077@marge.bs.l>
References:  <20080724133631.GA31077@marge.bs.l>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 -



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080724165727.O3416>