Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2003 10:37:49 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        Chris Phillips <chris@furrie.net>
Cc:        Matt Smith <matt@forsetti.com>, FreeBSD-Questions@FreeBSD.Org
Subject:   Re: xterm + colors just wont splice...
Message-ID:  <3E6376CD.1020102@potentialtech.com>
In-Reply-To: <006401c2e199$a54c4480$9501000a@hq.inty.net>
References:  <20030226101352.58263.qmail@web13501.mail.yahoo.com> <1046702808.69533.0.camel@d80h149.public.uconn.edu> <006401c2e199$a54c4480$9501000a@hq.inty.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Phillips wrote:
>>On Wed, 2003-02-26 at 05:13, Thanos Tsouanas wrote:
>>
>>>Ive never managed to see colored output on an Xterm on FreeBSD..
>>>i mean, the -bg, -fg <color> switches work fine...
>>>but i cant see the colors of vim, nor when i ls -G etc etc.
>>>
>>>Any ideas?
>>>
>>
>>Try changing your TERM to xterm-color.
>>-Matt
> 
> Hi  yall!
> 
> I too, would like to see similar colours to what I used to, when I was
> running Mandrake.  For example, you'd get different file types shown in
> different colours (when doing "ls") & even in vi you'd get code coloured
> in a nice & helpful fashion.  Editing HTML was a joy!
> 
> My favoured shell is zsh (it's what we use at work, so I am sticking
> with it) & I've searched for some .zshrc examples but not had any great
> joy I'm afraid.
> 
> Please can somebody point me in the right direction?

The TERM setting isn't the only thing you need to do.  ls doesn't use colors
by default, so you need to configure it to use colors.  vi is the same
(as far as I know).  See the man page for each program that you want to see
colors with, to see how to configure it for color.  Most of these programs
will let you set an environment varialbe in (in your case) the .zshrc file.
For example, in ls you set CLICOLOR and LSCOLORS.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E6376CD.1020102>