Re: color to files
On Mon, 2003-11-03 at 05:51, Lowell Gilbert wrote: > andi payn <[EMAIL PROTECTED]> writes: > > > Was the xterm termcap changed for FreeBSD 5, or have I just done > > something to fix this and forgotten about it? > > It's a little more complicated, because the *classical* xterm does > *not*, in fact, have color support, but yes, the latest releases > on both branches should pick this up just fine. OK, let me restate this to make sure I understand it; please correct me if I get anything wrong. The xterm that comes with XFree86 4.x, and most of the 3.x branch, has ANSI color support. The xterms that come with earlier XFree86 3.x versions and the X11R6.3 reference servers have old-style color support. But in the old days, xterm didn't have any color support (it originally emulated a B&W vt100 or something, right?). So, up to FreeBSD 4.8, the terminfo for xterm didn't indicate color support, and you had to specify xterm-color (or xterm-xf86-v40 or whatever). In 4.9 and 5.1, this is no longer an issue; xterm works just fine (unless someone's trying to connect to your FreeBSD box from some box running an ancient xterm...). Should I file a bug report on the ls(1) manpage, then? It says: "The default ``cons25'' console has the proper capabilities, but to display the colors in an xterm(1), for example, the TERM variable must be set to ``xterm-color''." This isn't true with 4.9/5.1--and also isn't true for ancient non-color-capable xterms, for that matter. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
andi payn <[EMAIL PROTECTED]> writes: > Was the xterm termcap changed for FreeBSD 5, or have I just done > something to fix this and forgotten about it? It's a little more complicated, because the *classical* xterm does *not*, in fact, have color support, but yes, the latest releases on both branches should pick this up just fine. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
On Sat, 2003-11-01 at 20:28, Malcolm Kay wrote: > If you are in X and using xterm then this also has the capability but by > default other programs such as ls are not informed of this because the > termcap description for terminal type 'xterm' does not declare it. After telling him this same thing, I went and checked, and it appears that on my FreeBSD 4.8 installation, I have to do this (or various other ways of getting the same effect), but on my 5.1 installation, with TERM=xterm, I get color. Was the xterm termcap changed for FreeBSD 5, or have I just done something to fix this and forgotten about it? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
On Sun, 2 Nov 2003 00:46, SWIT wrote: > Is there a way to make the directories to show in color when doing a ls ? > thanks Firstly; don't use the reply button for a new question. It puts your query in a thread on another question and might therefore be missed. In this case it appears in the thread: "Beep when tab cannot incomplete". As others have noted you need the '-G option with ls' or 'an alias' or 'an environment variable'. But you also need the capability to display colours. The standard non-X virtual terminals (cons25) in FreeBSD have this capability. If you are in X and using xterm then this also has the capability but by default other programs such as ls are not informed of this because the termcap description for terminal type 'xterm' does not declare it. If you set the environment variable TERM to xterm-color then it will work. Alternatively add the line: XTerm*termName: xterm-color to your .Xdefaults file. Malcolm Kay ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
On Sat, 1 Nov 2003, SWIT wrote: > Is there a way to make the directories to show in color when doing a ls ? > thanks Try ls -G this maybe what you want then set alias ls = ls -G in your environment sham khalil ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
On Sat, 2003-11-01 at 06:16, SWIT wrote: > Is there a way to make the directories to show in color when doing a ls ? > thanks > mark Did you try a "man ls"? It should give you two options: use the -G parameter, or set the CLICOLOR environment variable. If you don't know how to do this (or how to make it permanent--as a hint, try adding "export CLICOLOR=" in ~/.bashrc, if bash is your usual shell), come back and ask for details. If this doesn't work for you--or if it works on the text console but not in X, or if it only works in some X terminal emulators but not in others--make sure you've read the ls manpage's section on CLICOLOR and dealt with the termcap issue. If you don't like the colors, read the LSCOLORS section of the manpage. You can also install the GNU fileutils port/package (/usr/ports/sysutils/fileutils), and "gls --color=auto" should colorize things in that vibrant Stallman style that linux people are used to. Then you can alias ls to "gls --color=auto" in your .bashrc, etc. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
top-post. don't Please > From: "Greg J." <[EMAIL PROTECTED]> > To: "SWIT" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Saturday, November 01, 2003 9:23 AM > Subject: Re: color to files > > > > On Sat, 1 Nov 2003 09:16:01 -0500 > > "SWIT" <[EMAIL PROTECTED]> wrote: > > > > > Is there a way to make the directories to show in color when doing a > > > ls ? thanks > > > mark > > > > ls -G > > > > man ls :) "SWIT" <[EMAIL PROTECTED]> writes: > I did this and got nothing., Then get a termtype that supports it. On recent FreeBSD releases, it should work out of the box on xterm and the text console. > A webpage - i can't remember which one said I need to load a program from > the ports which I had installed and still got no colors. The Gnu ls, probably. That should do it too. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
Hello. I did this and got nothing., A webpage - i can't remember which one said I need to load a program from the ports which I had installed and still got no colors. Thanks Mark - Original Message - From: "Greg J." <[EMAIL PROTECTED]> To: "SWIT" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, November 01, 2003 9:23 AM Subject: Re: color to files > On Sat, 1 Nov 2003 09:16:01 -0500 > "SWIT" <[EMAIL PROTECTED]> wrote: > > > Is there a way to make the directories to show in color when doing a > > ls ? thanks > > mark > > ls -G > > man ls :) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: color to files
On Sat, 1 Nov 2003 09:16:01 -0500 "SWIT" <[EMAIL PROTECTED]> wrote: > Is there a way to make the directories to show in color when doing a > ls ? thanks > mark ls -G man ls :) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
color to files
Is there a way to make the directories to show in color when doing a ls ? thanks mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"