From owner-freebsd-current@FreeBSD.ORG Mon Apr 25 11:12:58 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 C7E9510656AA for ; Mon, 25 Apr 2011 11:12:58 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 544C58FC15 for ; Mon, 25 Apr 2011 11:12:57 +0000 (UTC) Received: by wwc33 with SMTP id 33so2014806wwc.31 for ; Mon, 25 Apr 2011 04:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=PBxtkw6ZtqK4rDhyGZ1xe2S5VSZgiqLKYcwb13piy80=; b=gsNMnqlp59tzK9zmuyiW5xaBrOduqcoun4TC173eOdVhQ+RTqgXViYVZjvuOhLGPBt dZA5duB077j/Nqpiq06HZYT7vaBW+rAESb72sZVyLMcaO0xIOOwIYIWpNNtTFW6N22GE PvRAKNYxwqPl3f/P/J5DlK9SH4apos1zzXQhk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=A0lI0cJmaNLEnJF2sDXthL6IOxwGYdelAnEqQYZGxzQzw32voKtfPpsNd+cuAIQhIv WXLpowlaf+eZBMd5K0r8EURFocWWNvJrPoGehObSz84QSCA2/lJW/LrsBSF+mmE/7mhN UizwffFKcBbSWexaq0lx2T/YJKOVdV7yxHfeA= Received: by 10.227.57.83 with SMTP id b19mr3746934wbh.15.1303729977266; Mon, 25 Apr 2011 04:12:57 -0700 (PDT) Received: from ernst.jennejohn.org (p578E3302.dip.t-dialin.net [87.142.51.2]) by mx.google.com with ESMTPS id bd8sm3213048wbb.31.2011.04.25.04.12.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2011 04:12:56 -0700 (PDT) Date: Mon, 25 Apr 2011 13:12:54 +0200 From: Gary Jennejohn To: Thomas Dickey Message-ID: <20110425131254.21c29fc8@ernst.jennejohn.org> In-Reply-To: <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> <20110425110039.GA7645@saltmine.radix.net> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: gljennjohn@googlemail.com 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:12:59 -0000 On Mon, 25 Apr 2011 07:00:39 -0400 Thomas Dickey wrote: > 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: > > > > > On Mon, Apr 25, 2011 at 08:37:05AM +0900, Randy Bush wrote: > > > > no help from the following: > > > > > > > > *** 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=\E[?1049l:ti=\E[?1049h:\ > > > > :tc=xterm-new: > > > > > > 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 database, > > > for instance). > > > > > > 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. > > > > > > > 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. > That's why I mentioned it, although I didn't compare the termcap entries for xterm and rxvt. > (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). > Mine sets it to rxvt. I tried setting TERM to rxvt in xterm, but of course it didn't work. -- Gary Jennejohn