From owner-freebsd-questions@FreeBSD.ORG Tue Jan 3 21:04:04 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 C9F1916A420 for ; Tue, 3 Jan 2006 21:04:04 +0000 (GMT) (envelope-from elcoocooi@earthlink.net) Received: from pop-altamira.atl.sa.earthlink.net (pop-altamira.atl.sa.earthlink.net [207.69.195.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ED3743D6D for ; Tue, 3 Jan 2006 21:03:58 +0000 (GMT) (envelope-from elcoocooi@earthlink.net) Received: from user-10lf27u.cable.mindspring.com ([65.87.136.254] helo=[192.168.0.101]) by pop-altamira.atl.sa.earthlink.net with esmtp (Exim 3.36 #10) id 1EttK1-0004TC-00 for freebsd-questions@freebsd.org; Tue, 03 Jan 2006 16:03:57 -0500 Message-ID: <43BAE6C7.9000700@earthlink.net> Date: Tue, 03 Jan 2006 16:04:07 -0500 From: "E. Eusey" User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051230) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Tue, 03 Jan 2006 21:04:04 -0000 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/rxvt.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. Evan