From owner-freebsd-questions Wed Feb 20 13:18:15 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mishkei.org.il (ghost2.mishkei.org.il [62.128.62.12]) by hub.freebsd.org (Postfix) with SMTP id A869A37B421 for ; Wed, 20 Feb 2002 13:17:41 -0800 (PST) Received: (qmail 2383 invoked from network); 20 Feb 2002 21:16:19 -0000 Received: from 212.116.170.38.knet.co.il (HELO dhcp-251) (212.116.170.38) by 0 with SMTP; 20 Feb 2002 21:16:19 -0000 Subject: Re: newbie xterm color ? From: Gilad Rom To: Mike Meyer Cc: Dale Morris , questions@freebsd.org In-Reply-To: <15476.3916.761080.392914@guru.mired.org> References: <15476.3916.761080.392914@guru.mired.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 20 Feb 2002 23:17:35 +0200 Message-Id: <1014239857.23322.16.camel@dhcp-251.meshek.eh> Mime-Version: 1.0 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 Or, you can use 'xterm -tn xterm-color'. Gilad On Wed, 2002-02-20 at 23:04, Mike Meyer wrote: > 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. > > -- > Mike Meyer 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message