xterm -fg gray and
xterm -fg grey but both gave
Warning: color name... is not defined.
I am on ubuntu and there is no rgb.txt in /etc/X11/rgb.txt
How can I launch xterm with custom fg/bg colors? (specific rgb values).
You can find a copy of the file here.
You can also add this line to
Xorg no longer uses rgb.txt for color names, but builds the color database into the X server when it's built. The rgb.txt built into the X server comes from the app/rgb module upstream, and the upstream version can be viewed in their git viewer.
xterm -bg rgb:80/80/80 xterm -bg '#808080'