From owner-freebsd-questions Wed Feb 20 13: 4:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id E012737B404 for ; Wed, 20 Feb 2002 13:04:15 -0800 (PST) Received: (qmail 18444 invoked by uid 100); 20 Feb 2002 21:04:13 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15476.3916.761080.392914@guru.mired.org> Date: Wed, 20 Feb 2002 15:04:12 -0600 To: Dale Morris Cc: questions@freebsd.org Subject: Re: newbie xterm color ? In-Reply-To: <126563389@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Dale Morris types: > I'm having trouble finding how to make xterm display in color. I have > [setenv TERM=xterm-color] in my .tcshrc but that doesn't do the trick. > It's strange though, RXVT will display mutt in color, but XTERM won't, > from the command line both vim and mutt both display in color, but not > in xterm. You've got the setenv syntax wrong. RXVT works because it (presumably) sets the xterm type to xterm-color itself, whereas xterm proper doesn't. You can tell xterm to do that by adding #ifdef COLOR XTerm*termName: xterm-color #endif to your .Xresources file (or whatever file is being fed to xrdb to set resources). If you're not using anything, then echo 'XTerm*termName: xterm-color' | xrdb in .xinitrc - before you start any xterms - will do the job, except that will also set it in the unlikely event that you are on an X server that doesn't support color. I think this method is a bit cleaner than setting things in the shell startup files. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message