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? randy
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 teentries. 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]
>> 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?for the archive *** termcap.FCS Tue Jun 17 15:10:46 2003 --- termcap Tue Jun 17 15:14:15 2003 *************** *** 299,305 **** adm3|3|lsi adm3:\ :do=^J:am:le=^H:bs:cl=^Z:li#24:ma=^K^P:co#80: xterm|xterm-color|X11 terminal emulator:\ ! :ti@:te@:tc=xterm-xfree86: # # DESCRIPTION: # This file describes capabilities of various terminals, as needed by --- 299,305 ---- adm3|3|lsi adm3:\ :do=^J:am:le=^H:bs:cl=^Z:li#24:ma=^K^P:co#80: xterm|xterm-color|X11 terminal emulator:\ ! :tc=xterm-xfree86: # # DESCRIPTION: # This file describes capabilities of various terminals, as needed by randy