From owner-freebsd-questions@FreeBSD.ORG Wed Jan 4 05:26:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E5B116A41F for ; Wed, 4 Jan 2006 05:26:47 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0424C43D5E for ; Wed, 4 Jan 2006 05:26:45 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from alpha.home (ppp224-76.lns2.adl4.internode.on.net [203.122.224.76]) by ash25e.internode.on.net (8.12.9/8.12.6) with ESMTP id k045QffL052822; Wed, 4 Jan 2006 15:56:42 +1030 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Wed, 4 Jan 2006 15:56:36 +1030 User-Agent: KMail/1.8 References: <43BAE6C7.9000700@earthlink.net> <200601041529.15123.malcolm.kay@internode.on.net> In-Reply-To: <200601041529.15123.malcolm.kay@internode.on.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601041556.36254.malcolm.kay@internode.on.net> Cc: "E. Eusey" Subject: Re: termcap and TERM detection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 05:26:47 -0000 On Wed, 4 Jan 2006 03:29 pm, Malcolm Kay wrote: > On Wed, 4 Jan 2006 07:34 am, E. Eusey wrote: > > The secondary screen functionality on my xterm > > (rxvt-unicode) was acting strangly. So, following the > > advice at: > > > > http://cvs.schmorp.de/browse/*checkout*/rxvt-unicode/doc/rxv > >t. 7.html > > > > I added an rxvt-unicode termcap entry to my termcap file and > > ran cap_mkdb. After login, I'm able to 'setenv TERM > > rxvt-unicode' and everything works perfectly. > > > > However, when running urxvt initially, it detects the $TERM > > as 'rxvt', not 'rxvt-unicode'. How is the $TERM variable > > determined by the system? Is there a way to detect my new > > termcap entry? Any help would be greatly appreciated. > > You should be able to set this through resources: > For example in .Xdefaults add: > Rxvt*termName: rxvt-unicode > Seems this applies to both rxvt and urxvt, To target urxvt specifically use: URxvt*termName: rxvt-unicode Looking at the Makefile in the rxvt-unicode port I find: CONFIGURE_ARGS= --enable-shared --enable-everything \ --with-term=rxvt Which I would guess changes the default from rxvt-unicode to rxvt probably because rxvt-unicode is not normally available in the termcap file. You could also consider modifying the Makefile and rebuilding the port. Malcolm Kay