From owner-freebsd-questions Thu Apr 4 10:23:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id D0F4037B6CA for ; Thu, 4 Apr 2002 10:22:32 -0800 (PST) Received: from user-119a2km.biz.mindspring.com ([66.149.10.150] helo=sylvester.dsj.net) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16tBsQ-0000j9-00; Thu, 04 Apr 2002 10:22:27 -0800 Received: (from dsj@localhost) by sylvester.dsj.net (8.9.3/8.9.3/Debian 8.9.3-21) id NAA07721; Thu, 4 Apr 2002 13:21:51 -0500 Date: Thu, 4 Apr 2002 13:21:51 -0500 From: "David S. Jackson" To: Kirk Strauser Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Default 'TERM' value Message-ID: <20020404132150.L32443@sylvester.dsj.net> Reply-To: "David S. Jackson" References: <87hemszppi.fsf@pooh.int> <20020403134009.B6800@client156-52.ll.siue.edu> <87bsd0v875.fsf@pooh.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <87bsd0v875.fsf@pooh.int>; from kirk@strauser.com on Wed, Apr 03, 2002 at 02:27:42PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Apr 03, 2002 at 02:27:42PM -0600 Kirk Strauser wrote: > > > xterm*termName: xterm-color > > Upon further searching, I found that I mis-stated the problem. I should > have said "How can I configure *Gnome Terminal* to always set TERM to > xterm-color, to which the answer seems to be "You can't" without use a > command-line argument. :/ TERM variables can be tricky. Sometimes the way to solve the problem is with the problematic application. At first, I set my TERM value to xterm-color and everything was okay as long as I was in X. But when I was at a virtual console, Vim would sometimes show weird characters where colors were supposed to be. The fix eventually seemed to be to change the behavior in my .vimrc: if &term == "xterm" set term=xterm-color else set term=$TERM endif This is just an example of how the fix was not changing TERM and starting a domino chain of events that affected every application that used TERM, but simply changing the behavior of a single application instead. -- David S. Jackson dsj@dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I should have been a country-western singer. After all, I'm older than most western countries. -- George Burns To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message