Re: ls and color
On Sun, Dec 07, 2003 at 11:38:07AM -0700, Robin Schoonover wrote: > 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) The xterm terminal type is now identical to xterm-color and has been since April, including on the RELENG_4 branch. If you're running 4.8-STABLE or one of the releases from before that date, you can use this setting in your .Xdefaults to change the terminal type to xterm-color by default: xterm*termName: xterm-color but you should make sure that you run something like: [ -f ${HOME}/.Xdefaults ] && /usr/X11R6/bin/xrdb -merge ${HOME}/.Xdefaults in your ~/.xsession or ~/.xinitrc Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: ls and color
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. # ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ls and color
On Fri, Dec 05, 2003 at 10:30:59AM -0800, Mike Maltese wrote: > > Is there a how to on making ls show colors or a web pages. Thanks. > > Well., there's ls -G, but you could have found that in the man page, right? > Of course you don't want to have to type -G every time, right? I have an entry in my .bashrc file alias ls='ls --color=auto' Every time i run ls, it actually runs ls --color=auto. Nice. dan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ls and color
> I think the OP meant "is there a how-to or a web page on > making 'ls' show colors?" Perhaps you're right. However, proper grammar would have made the question a bit clearer. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ls and color
Mike Maltese wrote: Is there a how to on making ls show colors or a web pages. Thanks. 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. ?? KDK ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ls and color
> Is there a how to on making ls show colors or a web pages. Thanks. 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. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"