Re: Terminal font colors?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Zullinger wrote:
Bob Goodwin wrote:
Thanks for the help but in my case it seems things are a bit
different since I use XFCE rather than Gnome.

The settings aren't really dependent on using Gnome or XFCE.  The main
thing to check is what the value for the TERM environmental var is set
to.  If it is set to xterm, then the colorls.sh script that is sourced
by bash on startup is going to use /etc/DIR_COLORS.xterm instead of
/etc/DIR_COLORS.

Here's the relevant section from /etc/profile.d/colorls.sh:

COLORS=/etc/DIR_COLORS
[ -e "/etc/DIR_COLORS.$TERM" ] && COLORS="/etc/DIR_COLORS.$TERM"
[ -e "$HOME/.dircolors" ] && COLORS="$HOME/.dircolors"
[ -e "$HOME/.dircolors.$TERM" ] && COLORS="$HOME/.dircolors.$TERM"
[ -e "$HOME/.dir_colors" ] && COLORS="$HOME/.dir_colors"
[ -e "$HOME/.dir_colors.$TERM" ] && COLORS="$HOME/.dir_colors.$TERM"

Use "echo $TERM" to see what your terminal has set TERM to.  I don't
want to change the system-wide setting, so I choose to put my colors
in


.  Since that is checked after the system-wide files
are checked and I don't have a ~/.dircolors.$TERM, I get the same
colors for both consoles and terminals.

The default /etc/DIR_COLORS enables bold, so when I copy it to
~/.dircolors and then source /etc/profile.d/colorls.sh, my colors now
include bold.  Does that not work the same in your case?
Yes, I had been messing with that and set it to [07] reverse video and then set it back to [01] bold.



Not exactly, echo $TERM  responds 'xterm'

And it I do 'xterm' I get a small terminal with black text on white whereas doing 'xfterm4' produces another XFCE terminal such as I have now configured to my liking. So it appears there is a difference with xfce installed?

Also I don't find a '~/.dircolors' must I create that?
Bob Goodwin


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux