On Thu, Jun 26, 2025 at 04:17:09AM +0000, Erik Christiansen via Dng wrote:
> On 25.06.25 20:29, Steve Litt wrote:
>
> > Erik Christiansen via Dng said on Wed, 25 Jun 2025 01:55:09 +0000
>
> > >colours='-fg yellow -bg darkslategrey -cr red';
>
> > >uxterm $colours -sb -rightbar -geometry 100x50+300+10 -bc +vb &
>
> >
>
> > I wish you'd told me this 25 years ago, but today is the second best
>
> > time :-). Now here's a tough one that I haven't been able to find an
>
> > answer to: How do I set -bg to an rgb value in the uxterm command
>
> > itself, or a shellscript that calls the command?
> Dunno how to faff directly with raw hex rgb values on the commandline,
I found faffing instrutions in the online documentation. Of course the
hard part of that was finding that documentation.
Elsewhere in X, one writes hexadecimal colour values as rgb:23/45/ef
where 233, 45, and ef are one to four digit hexadecimal rgb values.
The following worked for me, using xterm
uxterm -fg rgb:20/30/40 -bg rgb:99/aa/bb &
Colours are dscribed in
http://linuxdocs.org/HOWTOs/XWindow-User-HOWTO-7.html#ss7.5
They can be configured in an .Xresources file, described in
http://linuxdocs.org/HOWTOs/XWindow-User-HOWTO-8.html
That whole manual is worth looking at:
http://linuxdocs.org/HOWTOs/XWindow-User-HOWTO.html#toc8
Have fun!
-- hendrik