From owner-freebsd-current@FreeBSD.ORG Mon Apr 25 11:00:45 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63F4A106566B for ; Mon, 25 Apr 2011 11:00:45 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 08F7F8FC16 for ; Mon, 25 Apr 2011 11:00:44 +0000 (UTC) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id p3PB0huM008481; Mon, 25 Apr 2011 07:00:44 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id p3PB0do3008479; Mon, 25 Apr 2011 07:00:39 -0400 (EDT) Date: Mon, 25 Apr 2011 07:00:39 -0400 From: Thomas Dickey To: Gary Jennejohn Message-ID: <20110425110039.GA7645@saltmine.radix.net> References: <8639l7bbt3.fsf@gmail.com> <20110424222634.GA24854@saltmine.radix.net> <20110425002314.GA8998@saltmine.radix.net> <20110425095224.39550486@ernst.jennejohn.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20110425095224.39550486@ernst.jennejohn.org> User-Agent: Mutt/1.3.27i Cc: FreeBSD current mailing list Subject: Re: xterm termcape :ti@:te@: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2011 11:00:45 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 25, 2011 at 09:52:24AM +0200, Gary Jennejohn wrote: > On Sun, 24 Apr 2011 20:23:14 -0400 > Thomas Dickey wrote: >=20 > > On Mon, Apr 25, 2011 at 08:37:05AM +0900, Randy Bush wrote: > > > no help from the following: > > >=20 > > > *** termcap~ Fri Mar 18 14:34:01 2011 > > > --- termcap Sun Apr 24 23:33:52 2011 > > > *************** > > > *** 3131,3136 **** > > > --- 3131,3137 ---- > > > # > > > # Customization begins here. > > > xterm-xfree86|xterm terminal emulator (XFree86):\ > > > + :te=3D\E[?1049l:ti=3D\E[?1049h:\ > > > :tc=3Dxterm-new: > >=20 > > At this point, I'd check if less is using that entry > > (ktrace or truss should be able to show the open's on the termcap datab= ase, > > for instance). > >=20 > > Also, I seem to recall some discussion about less' -X (--no-init) > > option. It's possible that someone's patched "less" for FreeBSD > > to make that -X option more or less permanent. That would be > > consistent with omitting ti/te from the termcap. > >=20 >=20 > This may not be too helpful, but it works with rxvt and less, i.e. the > old screen contents are preserved and appear again after leaving less. Well, that would address the issue with "less" (if it used the same behavior in either terminal). rxvt should be setting $TERM to some "rxvt" name though, since its function-keys differ from xterm's. (I seem to recall that some packages for it used to set TERM to "xterm", under the supposition that a poor match was better than none). --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFNtVQvtIqByHxlDocRAkq7AKCi5UZxn9G6SD2d8C6TBxUjRDzXhwCgne1z 2SjIS+lL2QiaN+V1tLPw/2E= =yMWx -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--