From owner-freebsd-stable@FreeBSD.ORG Tue Jun 17 14:14:45 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18BAE37B401 for ; Tue, 17 Jun 2003 14:14:45 -0700 (PDT) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6533743F93 for ; Tue, 17 Jun 2003 14:14:44 -0700 (PDT) (envelope-from allbery@ece.cmu.edu) Received: from rushlight (allbery@allbery.dsl.telerama.com [205.201.8.182]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h5HLEa316433; Tue, 17 Jun 2003 17:14:36 -0400 (EDT) From: "Brandon S. Allbery " KF8NH To: Randy Bush In-Reply-To: References: Content-Type: text/plain Organization: Message-Id: <1055884479.83103.11.camel@rushlight.kf8nh.apk.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 17 Jun 2003 17:14:39 -0400 Content-Transfer-Encoding: 7bit cc: FreeBSD Stable Subject: Re: xterm screen restore X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 21:14:45 -0000 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]