Skip site navigation (1)Skip section navigation (2)
Date:      17 Jun 2003 17:14:39 -0400
From:      "Brandon S. Allbery " KF8NH <allbery@ece.cmu.edu>
To:        Randy Bush <randy@psg.com>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: xterm screen restore
Message-ID:  <1055884479.83103.11.camel@rushlight.kf8nh.apk.net>
In-Reply-To: <E19SNd1-0005yh-DG@ran.psg.com>
References:  <E19SNd1-0005yh-DG@ran.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2003-06-17 at 17:04, Randy Bush wrote:
> when i exit more, vi, ... i like to have the window restored to
> the way it was before i entered more, vi, ...  i used to effect
> this by a hack to the termcap data, but have lost the hack.  what
> am i missing here?

You want the switch to/from alternate screen escapes in the ti= and te=
entries.

Standard:  \E[?47h
XFree86: \E[?1049h (this one clears the target and remembers the cursor
position in each screen; XFree86 4.0 and later only)

Also make sure the titeInhibit resource isn't set to true, as this
causes xterm to ignore the alternate screen (arguably it's misnamed).

-- 
brandon s allbery [openafs/solaris/japh/freebsd] allbery@kf8nh.apk.net
system administrator [linux/heimdal/too many hats] allbery@ece.cmu.edu
electrical and computer engineering                              KF8NH
carnegie mellon university  [better check the oblivious first -ke6sls]



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