From owner-freebsd-questions@FreeBSD.ORG Sun Dec 7 10:38:13 2003 Return-Path: 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 07CEB16A4CF for ; Sun, 7 Dec 2003 10:38:13 -0800 (PST) Received: from endif.cjb.net (65-101-229-205.dnvr.qwest.net [65.101.229.205]) by mx1.FreeBSD.org (Postfix) with SMTP id 786FD43FF7 for ; Sun, 7 Dec 2003 10:38:09 -0800 (PST) (envelope-from end@endif.cjb.net) Received: (qmail 22894 invoked from network); 7 Dec 2003 18:38:08 -0000 Received: from localhost (127.0.0.1) by localhost with SMTP; 7 Dec 2003 18:38:08 -0000 Date: Sun, 7 Dec 2003 11:38:07 -0700 From: Robin Schoonover To: "Kevin D. Kinsey, DaleCo, S.P." Message-Id: <20031207113807.609850b7.end@endif.cjb.net> In-Reply-To: <3FD0DFAB.5060904@daleco.biz> References: <3FD0CCB5.1000501@magidesign.com> <00fb01c3bb5d$ee483c90$f4f0a8c0@pcmedx.com> <3FD0DFAB.5060904@daleco.biz> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Mike Maltese cc: freebsd-questions Subject: Re: ls and color X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2003 18:38:13 -0000 X-List-Received-Date: Sun, 07 Dec 2003 18:38:13 -0000 On Fri, 05 Dec 2003 13:42:35 -0600, Kevin D. Kinsey, DaleCo, S.P. wrote: > Mike Maltese wrote: > > > >Well., there's ls -G, but you could have found that in the man page, > >right? > > > >ls is not a web browser. Try www/lynx. if you want to grab a web page, > >try fetch or ftp/wget. > > > > I think the OP meant "is there a how-to or a web page on > making 'ls' show colors?" > > ls -G is the standard option, as man page says, equivalent > to setting CLICOLOR in your environment. > > Some terminals (under X perhaps) don't handle this environment > variable without some tweaking, though, I think..... ?? > It's up to ls to handle the enviroment variable. CLICOLOR gets set in my .cshrc, and it works fine in xterm (and the console) for me. However, ls does have to lookup how to display the color. The 'xterm' terminal name in 4.x does not have color, so you have to tell xterm use 'xterm-color', which does have it. This amounts to doing something like "xterm -tn xterm-color". (I've been using 5.1 lately, so if this was MFC'd recently I wouldn't really know) -- Robin Schoonover (aka End) # # An optimist is someone who believes Schroedinger's cat is half alive. #