11 ms·
> (terminals don't publish their colors so the defaults have to work on light and dark) Hi. There are actually some possibilities there, but it is not entirel
by mixmastamyk 6y ago
> (terminals don't publish their colors so the defaults have to work on light and dark)
Hi. There are actually some possibilities there, but it is not entirely reliable. Examples are xterm sequences and the COLORFGBG environment variable. Some terminals can be assumed to be dark such as the linux/bsd console or now vintage hardware.
Windows is most often dark, but there is an API to ask as well. However, I don't think fish works there. Perhaps from LSW.
Sounds like having default colors closer to medium gray is easier.