xterm screen restore
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Tue Jun 17 14:14:45 PDT 2003
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 at kf8nh.apk.net
system administrator [linux/heimdal/too many hats] allbery at ece.cmu.edu
electrical and computer engineering KF8NH
carnegie mellon university [better check the oblivious first -ke6sls]
More information about the freebsd-stable
mailing list