Hi ports@

Some time ago this rgb.txt file (X color 'database') got updated:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/app/rgb/rgb.txt.diff?r1=1.2&r2=1.3
http://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/app/rgb/rgb.txt

I don't know if this is the actual file that gets installed
in /usr/X11R6/share/X11/rgb.txt please advise if this is not so.

I've found out experimentally that the xcolors port since does not
display all colors as expected and modified my copy of rgb.txt in $HOME
and am using it like this so far:

/usr/local/bin/xcolors -rgbfile ~/rgb.txt

Here is the port:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/x11/xcolors/

One possible approach is that either the xcolors port gets updated to
accommodate the new system wide rgb.txt, or alternatively it could
receive an own copy of a working rgb.txt (less preferred), similar to
other ports that have a local version (notably emacs).

I've not found any issues (so far in daily usage) with changing my
system wide rgb.txt, but prefer xcolors to work with the current
included in Xorg (or at least not break with multiple definitions of
the same colour).

Presumably the intended goal is to have xcolors display (almost) all X
color names for reference, as in quick install the port from package and
it just would work and continue to work with the updated color database
without any fiddling.

I actually found out about this by trying to understand why emacs was
having issues starting and was complaining about undefined colors some
time ago (forgotten about details already) and it may have had
something to do with terminal colors defined as names in .Xresources,
the point is that then xcolors did not help me with a nice set of
color names to use for a reference of all X colors predefined.

A relevant thread that fixed xcolors to use system color database:

http://marc.info/?l=openbsd-ports&m=121333283228282

Here is how I tweaked my system wide rgb.txt (probably this reverts the
above mentioned update as the silliest approach) but this allows xcolors
to work (for me) without specifying the color database on the command
line:

P.S. I don't have the skills and understanding to fix xcolors on my own
(yet).

Regards,
Anton

$ diff -u /usr/X11R6/share/X11/rgb.txt{.orig,}      
--- /usr/X11R6/share/X11/rgb.txt.orig   Mon Jan  5 11:53:22 2015
+++ /usr/X11R6/share/X11/rgb.txt        Fri Sep 18 00:44:18 2015
@@ -57,14 +57,14 @@
 119 136 153            LightSlateGrey
 190 190 190            gray
 190 190 190            grey
-190 190 190            x11 gray
-190 190 190            X11Gray
-190 190 190            x11 grey
-190 190 190            X11Grey
-128 128 128            web gray
-128 128 128            WebGray
-128 128 128            web grey
-128 128 128            WebGrey
+!190 190 190           x11 gray
+!190 190 190           X11Gray
+!190 190 190           x11 grey
+!190 190 190           X11Grey
+!128 128 128           web gray
+!128 128 128           WebGray
+!128 128 128           web grey
+!128 128 128           WebGrey
 211 211 211            light grey
 211 211 211            LightGrey
 211 211 211            light gray
@@ -113,7 +113,7 @@
  72 209 204            MediumTurquoise
  64 224 208            turquoise
   0 255 255            cyan
-  0 255 255            aqua
+!  0 255 255           aqua
 224 255 255            light cyan
 224 255 255            LightCyan
  95 158 160            cadet blue
@@ -140,11 +140,11 @@
 124 252   0            lawn green
 124 252   0            LawnGreen
   0 255   0            green
-  0 255   0            lime
-  0 255   0            x11 green
-  0 255   0            X11Green
-  0 128   0            web green
-  0 128   0            WebGreen
+!  0 255   0           lime
+!  0 255   0           x11 green
+!  0 255   0           X11Green
+!  0 128   0           web green
+!  0 128   0           WebGreen
 127 255   0            chartreuse
   0 250 154            medium spring green
   0 250 154            MediumSpringGreen
@@ -216,16 +216,16 @@
 219 112 147            pale violet red
 219 112 147            PaleVioletRed
 176  48  96            maroon
-176  48  96            x11 maroon
-176  48  96            X11Maroon
-128   0   0            web maroon
-128   0   0            WebMaroon
+!176  48  96           x11 maroon
+!176  48  96           X11Maroon
+!128   0   0           web maroon
+!128   0   0           WebMaroon
 199  21 133            medium violet red
 199  21 133            MediumVioletRed
 208  32 144            violet red
 208  32 144            VioletRed
 255   0 255            magenta
-255   0 255            fuchsia
+!255   0 255           fuchsia
 238 130 238            violet
 221 160 221            plum
 218 112 214            orchid
@@ -238,10 +238,10 @@
 138  43 226            blue violet
 138  43 226            BlueViolet
 160  32 240            purple
-160  32 240            x11 purple
-160  32 240            X11Purple
-128   0 128            web purple
-128   0 128            WebPurple
+!160  32 240           x11 purple
+!160  32 240           X11Purple
+!128   0 128           web purple
+!128   0 128           WebPurple
 147 112 219            medium purple
 147 112 219            MediumPurple
 216 191 216            thistle
@@ -773,10 +773,10 @@
 139   0   0            DarkRed
 144 238 144            light green
 144 238 144            LightGreen
-220  20  60            crimson
- 75   0 130            indigo
-128 128   0            olive
-102  51 153            rebecca purple
-102  51 153            RebeccaPurple
-192 192 192            silver
-  0 128 128            teal
+!220  20  60           crimson
+! 75   0 130           indigo
+!128 128   0           olive
+!102  51 153           rebecca purple
+!102  51 153           RebeccaPurple
+!192 192 192           silver
+!  0 128 128           teal

Reply via email to