Switch to alternate screen buffer

Bertram Scharpf lists at bertram-scharpf.de
Thu Jul 24 13:36:33 UTC 2008


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


More information about the freebsd-questions mailing list