# Is it feasible to make use of called colors in Zsh past ANSI names?

I recognize there are means to make use of ANSI shade names in Zsh (such as red), yet Zsh sustains 256 colors by number. I'm interested if there's any kind of means to describe the non-ANSI colors by a name? (Without simply sticking them in a variable)

0
2019-05-04 16:41:33
Source Share
The colors can be transformed from within the terminal; see the ctlseqs documents. As an example print '\e]4;42;taupe\a' adjustments shade 42 to be taupe (the shade names are readily available in /etc/X11/rgb.txt or a few other distribution-dependent area ).
If you're material to think that the colors over 16 have their default values, you can expand the \$color array with names from rgb.txt. You'll require to do a little math to locate the closest estimate of 8-bit colors in lg (6 ) -little bit colors.