From owner-freebsd-questions Thu Apr 4 10:14:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 1FF7D37B4E8 for ; Thu, 4 Apr 2002 10:13:57 -0800 (PST) Received: from user-119a2km.biz.mindspring.com ([66.149.10.150] helo=sylvester.dsj.net) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16tBk2-0001Y2-00; Thu, 04 Apr 2002 10:13:46 -0800 Received: (from dsj@localhost) by sylvester.dsj.net (8.9.3/8.9.3/Debian 8.9.3-21) id NAA07604; Thu, 4 Apr 2002 13:12:56 -0500 Date: Thu, 4 Apr 2002 13:12:56 -0500 From: "David S. Jackson" To: Kirk Strauser Cc: freebsd-questions@freebsd.org Subject: Re: Default 'TERM' value Message-ID: <20020404131256.K32443@sylvester.dsj.net> Reply-To: "David S. Jackson" References: <87hemszppi.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: <87hemszppi.fsf@pooh.int>; from kirk@strauser.com on Wed, Apr 03, 2002 at 10:55:53AM -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 10:55:53AM -0600 Kirk Strauser wrote: > What's a good way to set the default value of $TERM to 'xterm-color' when > I'm using X? Your $TERM variable is a shell variable. It's set in your shell's startup scripts, either globally or in your home directory. If you want to see what it is, open an xterm or rxvt and go echo $TERM. Then, go to a virtual terminal (alt-f2, say) and log in, and type echo $TERM. Normally, your console is set to cons25 for virtual terminals and xterm for X terminals. If all you really want is colors in your directory listings, then install colorls or gnuls and alias ls=gnuls or alias ls=colorls accordingly. If you're wondering why gnome-terminal doesn't seem to recognize your $TERM variable, it's not your fault: gnome-terminal itself doesn't want to. You have to set that in gnome-terminal's settings. Just set your colorscheme to rxvt and your foreground/background colors to white/black. Or whatever you want. That will just apply to gnome-terminal, not your other terms. You want to let each of your terminals to try and "do the right thing" by its default settings. You don't want to set TERM to be correct with gnome-terminal but break when you use an xterm or rxvt. So whatever you do, keep settings changes as narrowly applicable as makes sense. -- David S. Jackson dsj@dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= It is impossible to experience one's death objectively and still carry a tune. -- Woody Allen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message