:: Re: [DNG] uxterm colors: was Steve'…
Inizio della pagina
Delete this message
Reply to this message
Autore: dvalin
Data:  
To: dng
Nuovi argomenti: [DNG] uxterm colors
Oggetto: Re: [DNG] uxterm colors: was Steve's Gnome usage poll [Was: Re: Gnome - Introducing stronger dependencies on systemd
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,

as I've just picked the nearest handy named colour in rgb.txt, which

wanders about a bit between distros. For a custom rgb colour,

I'd just add a new line to the file:

rrr ggg bbb<tab><tab>Erik_the_Red

(Not tried, but oughta work.)

Here I have:

$ locate rgb.txt

/etc/X11/rgb.txt

/usr/share/X11/rgb.txt

/usr/share/vim/vim81/rgb.txt

and:

$ diff /etc/X11/rgb.txt /usr/share/X11/rgb.txt

$

so peruse either for xterm colours:

$ uxterm -fg yellow -bg darkslategrey -cr red

Apropos cursor colour, red is easier to spot on the screen, but I

currently have editor mode-indicating dynamic colouring in .vimrc:

" Cursor Appearance:

" (Insert_Mode = Red, Replace Mode = Purple, Normal_Mode = Green)

if &term =~ "xterm"

let &t_SI = "\<Esc>]12;red\x7"

let &t_SR = "\<Esc>]12;purple\x7"

let &t_EI = "\<Esc>]12;green\x7"

endif

(Maybe I should swap Red & Green, as the latter is harder to spot after a

find has sent it flying.) Note: These are Vim colours, not from rgb.txt,

at least in old Vim 8.1.

Coulda hinted 25 years ago, as I've used these two colours since the days of

SunOS 4.1.3, pre-Solaris. ;-)

I wonder if 16 years of primary, secondary, and tertiary schooling,

staring at slate-coloured blackboards has acculturated me to the colour

scheme?

Erik