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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux