From owner-freebsd-bugs Wed Nov 17 20:18:12 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from ns.itga.com.au (ns.itga.com.au [192.83.119.129]) by hub.freebsd.org (Postfix) with ESMTP id 8D5FF150CB for ; Wed, 17 Nov 1999 20:18:02 -0800 (PST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id PAA22608; Thu, 18 Nov 1999 15:17:57 +1100 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id PAA12413; Thu, 18 Nov 1999 15:17:56 +1100 (EST) Message-Id: <199911180417.PAA12413@lightning.itga.com.au> X-Mailer: exmh version 2.0.1 12/23/97 From: Gregory Bond To: "Ronald F. Guilmette" Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: misc/14959: incomplete xterm termcap entry (see also bug gnu/5039) In-reply-to: Your message of Wed, 17 Nov 1999 19:10:01 -0800. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 18 Nov 1999 15:17:55 +1100 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The problem is a little more subtle. The meaning of "ti" and "to" termcap entries make no mention of "saving the screen contents". The description of ti in termcap(5) is "string to start programs using cursor_address". There is no way in termcap to express the operation "save/restore the screen contents", and no way to write a program (vi, more, whatever) to either use or not use this feature. Extending termcap (yet again!) with another set of tags for this feature is probably not feasible. So ugly hacks are the only option. > (In the meantime, I've kludged together something local here... > a wrapper shell script for `more' that *removes* the te=/ti= stuff from the > TERMCAP environment variable before starting `more'... but that's kind-of > an ugly hack.) A slightly less ugly hack is to have a second termcap entry like this: xterm-cl|xterm with ti=clear/restore screen:\ :ti=:to=:tc=xterm: and then something like (for Bash/ksh users) vi () { TERM=xterm-cl vi "$@"; } WRT the original PR, perhaps a solution is to add a suitable "xterm-cl" entry to the standard termcap file? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message