From owner-freebsd-questions Mon Mar 3 7:37:54 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FD0837B401 for ; Mon, 3 Mar 2003 07:37:53 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58EE643FA3 for ; Mon, 3 Mar 2003 07:37:52 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h23FbnrX014732; Mon, 3 Mar 2003 10:37:49 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E6376CD.1020102@potentialtech.com> Date: Mon, 03 Mar 2003 10:37:49 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030301 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Phillips Cc: Matt Smith , FreeBSD-Questions@FreeBSD.Org Subject: Re: xterm + colors just wont splice... References: <20030226101352.58263.qmail@web13501.mail.yahoo.com> <1046702808.69533.0.camel@d80h149.public.uconn.edu> <006401c2e199$a54c4480$9501000a@hq.inty.net> In-Reply-To: <006401c2e199$a54c4480$9501000a@hq.inty.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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 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