Wednesday, August 1. 2007Wednesday Why: Colour lsTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Hi,
Why are console terminals restricted to only 8 fg and 8 bg colors? Even if it used a char (byte) and used the sign bit as fg / bg indicator, there would be 128 fg and 128 bg colors. This doesn't seem technologically challenging. Obviously the hardware has no problem with this as it supports millions of colors in X. I know that the emphasis is on terminal emulators in GUIs these days, but this doesn't seem like it would require a lot of work to implement and would really enhance the console experience. Where is this restriction coded?
This is actually a hardware limitation -- most video cards are, in character mode, compatible with the old VGA standard (which was based in turn on the CGA standard). This provided 8 colours + "bright" mode giving 8 additional colours.
I have a mount point which is showing up a black on a green background (another mount in the same folder is standard blue on white). I cannot find anything in /etc/DIR_COLORS or variations which would explain it. Any idea why?
Black or blue on a green background seems to indicate a others-writable directory. But I'm not sure where that came from!
> Black or blue on a green background seems to indicate a
> others-writable directory. But I'm not sure where that came from! Noticed the same, also looking for where it's configured. Can't find anything in my /etc/DIR_COLORS, /etc/profile, /etc/profile.d/* , or even in the $LS_COLORS environment variable. Kind of annoying when you're looking through a fat/ntfs partition mounted with no restrictions.
This worked for me in cygwin. Suspect should be the same where GNU ls is supported
run 'dircolors -p' Notice that it has much more entries that are documented in /etc/DIR_COLORS. For this particular case, there is an entry called 'OTHER_WRITABLE'. Its default value is '34;42' (blue on green). I have added this entry to /etc/DIR_COLORS with the same value as DIR and now all directories display in the same color for me. |
Welcome!The Fedora Daily Package exists to highlight lesser-known Fedora Linux packages each weekday-- with a special article each Wednesday taking a behind-the-scenes look at some of the configuration options and packaging details that make Fedora tick. For more information, please see the Fedora Daily Package Welcome posting. For information on the Fedora package management system and how to install, update, and remove pacakges, see the postings from Package Management Week (especially Using Yum). To suggest a future Fedora Daily Package, use the Suggest a Package box below. TranslationsBooksBooks related to Fedora, including Fedora Linux and X Power Tools by Chris Tyler (this site's editor): Suggest a PackageCategoriesChris Tyler's BlogLooking for a Debugging Mentor
Wednesday, February 20. 2013 Acessing the armv6hl Koji Buildsystem Monday, February 11. 2013 Why the Pi is Great for Teaching and Hacking Friday, January 18. 2013 SBR600 - Winter 2013 Monday, December 17. 2012 The OSTEP Team Wednesday, November 28. 2012 QuicksearchBlog AdministrationLicense![]() Original material in the Fedora Daily Package is Copyright ©2006-2008 by Chris Tyler. This material may be distributed under the Creative Commons Attribution-Share Alike 2.5 Canada License or the Open Publication License. |