From owner-freebsd-hackers Tue Jul 4 0: 4:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.lewman.org (lowrider.lewman.org [209.67.240.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D3E837BFE8; Tue, 4 Jul 2000 00:04:29 -0700 (PDT) (envelope-from sean@rentul.net) Received: by mail.lewman.org (Postfix, from userid 1004) id 704733D32; Tue, 4 Jul 2000 03:05:05 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.lewman.org (Postfix) with ESMTP id 6E1C65BC3; Tue, 4 Jul 2000 03:05:05 -0400 (EDT) Date: Tue, 4 Jul 2000 03:05:05 -0400 (EDT) From: Sean Lutner X-Sender: sean@lowrider.lewman.org To: John Baldwin Cc: Doug Barton , hackers@FreeBSD.ORG, Brian Fundakowski Feldman Subject: Re: ls -G seems to depend on TERM=xterm-color In-Reply-To: <200007040641.XAA37730@john.baldwin.cx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 3 Jul 2000, John Baldwin wrote: > > 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. Well, I'm not really using xterm, I use Eterms, and I've NEVER had this problem before, so it was non-obvious to me. I know the Eterms I'm using are capable of displaying color ls output, because it does so when logged into shells. Also, I'm not sure if this is related, but if the xterms aren't capable of displaying color due to it's termcap, how come I can set the fg (text) to any color I choose, and they show up? > > > Thanks, > > > > Doug > > -- > > John Baldwin -- 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message