Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 23:41:16 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.ORG>
To:        Doug Barton <DougB@gorean.org>
Cc:        hackers@FreeBSD.ORG, Sean Lutner <sean@rentul.net>, Brian Fundakowski Feldman <green@FreeBSD.ORG>
Subject:   Re: ls -G seems to depend on TERM=xterm-color
Message-ID:  <200007040641.XAA37730@john.baldwin.cx>
In-Reply-To: <39603C55.507A2829@gorean.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 03-Jul-00 Doug Barton wrote:
> Brian Fundakowski Feldman wrote:
>> 
>> On Sun, 2 Jul 2000, Sean Lutner wrote:
>> 
>> > I'm experiencing the same thing. ls --color doesn't seem to work for me
>> > unless like Doug, I set TERM=xterm-color.
>> 
>> That's because the "color" escape sequences are defined for xterm-color
>> in termcap; xterm-color is defined as a superset of xterm (see the tc=
>> directive). 
> 
>       Right... I am down with all that. I just wanted to confirm that the
> colorized ls depended on the xterm-color setting. 
> 
>> I have a lot of X resources defined, and here is one that
>> could help you guys:
>> 
>> XTerm*termName: xterm-color
> 
>       Ok, that's a good solution, I was just using .bashrc. My point is not
> so much why, but that it be properly documented. Do you want to handle
> the update of the ls man page, or do you want me to PR a patch?

Umm, honestly, this shouldn't be all that non-obvious.  Do you expect
ls -G to work on a monochrome monitor?  Of course not. :P  The xterm
termcap is by default a monochrome terminal.  sysinstall doesn't have
color in an xterm either w/ term=xterm.

> Thanks,
> 
> Doug

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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




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