Colour ls
Posted Jan 1, 2005 23:22 UTC (Sat) by
Ross (subscriber, #4065)
In reply to:
Colour ls by kael
Parent article:
Debian and the hot babe problem
If only the configuration file let you use RGB triplets for specifying
the colors. Instead it takes a raw chunks of extended VT100/ANSI terminal
control sequences. Unfortunately not the entire sequence... just a portion
from the middle. Thus you can only use the basic foreground and background
colors which are quite ugly. The only way to obtain less saturated, less
clashing, and brighter colors is to change your XTerm color settings so
that they no longer match with the specified colors.
If they had been more flexible you could use the builtin color cube for the
foreground and background colors (\033[38;5;`((R*6)+G)*6+B+16`m) or
even use the dynamic color palette. It's possible to query the current
background color so the defaults could be made to look nice so there could
be separate color selections for dark and light backgrounds.
So I agree that in theory color directory listing could be ok, the
implementation (color-ls) sucks. The problem is deeper than the default
color selection.
(
Log in to post comments)