Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fix hard-to-read colors in xterm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fix hard-to-read colors in xterm
Authored by: Cerberus on Jul 16, '04 04:20:07PM

This is not true - you need to have your terminal announce itself as xterm-color, not xterm, then ls -G will colorize your screen. Once you can get your terminal.app (and/or ssh etc) to say it is an xterm-color screen, then to make colorization permanent, make an alias to ls = ls -G (Like this)

alias ls='ls -G'

I will look around for the code i used to make this permanent (I think it was in the .login for bash but cannot find it now, so maybe it was in the rc's?)

What I like about this change is then you do not have questionably available binaries running on your system (well, you never truly know)



[ Reply to This | # ]
Fix hard-to-read colors in xterm
Authored by: zojas on Jul 16, '04 05:16:23PM
terminal.app is more accurately described as dtterm, rather than xterm-color. then of course, if you run an actual xterm, you will want xterm-color.

I put this in my ~/.zshenv file. for bash, it would probably be best in ~/.bash_login


if [[ $TERM == 'vt100' ]]
then
  export TERM=dtterm
  #export TERM=xterm-color
elif [[ $TERM == 'xterm' ]]
then
  export TERM=xterm-color
fi
also, I have only /bin/ls. I aliased my ls like this:

alias ls='ls -FvG '
if you wanted to run apple's ls rather than the one in coreutils from fink, change the ls alias like this:

alias ls='/bin/ls -FvG'
I set my LSCOLORS like this:

export LSCOLORS='Fa'


[ Reply to This | # ]
Fix hard-to-read colors in xterm
Authored by: Cerberus on Jul 17, '04 04:50:34PM

That is funny. I posted this info on Apr 11 here and stated that I had to make ZERO changes under 10.3.3. So it might be that apple fixed the terminal for us? I made the same statements I made above (ls -G to enable color output)

http://www.macosxhints.com/article.php?story=20020408225741777

but the point here is that if you are on the recent verions of 10.3 (seemingly .3 or .4) then there is NO NEED to hack away at seeing colors. But as an aside, the blue that we are all after changing is horrible to look at (it is ugly with my/this hint so I have to do something about it!)



[ Reply to This | # ]
Fix hard-to-read colors in xterm
Authored by: Cerberus on Jul 17, '04 06:35:11PM

And as a final coment to this I found this online (google'd it) and it looks great. Makes the colors nice and bright (instead of dingy and dark) and hilights things very well.

export LSCOLORS=ExFxCxDxBxegedabagacad

put it in your .profile, like all these other comments say ;-P



[ Reply to This | # ]