logoalt Hacker News

JohnLeitchyesterday at 5:57 PM3 repliesview on HN

> refrain from setting background colors

That's the thing though, setting bg color opens up a lot of options, and constraining to invert is not sufficient in my opinion.


Replies

reactordevyesterday at 11:33 PM

Sticking to the \x1b[4X background color is probably safe as that can be tweaked by terminal color palettes. It’s when you use the 256 or RGB \x1b codes that it becomes an issue. Ok for foreground.

layer8yesterday at 8:20 PM

That’s fine, but please make the colors configurable then.

For example like Mutt does: http://www.mutt.org/doc/manual/#color

Joker_vDyesterday at 6:13 PM

> constraining to invert is not sufficient in my opinion

Eh. Doing green/red text color with default background, maybe inverted works amazing for me. In fact, I'd say that every sensible colour scheme for a terminal should have as the default foreground/background colours something that is more or less contrasting against every other explicitly named colour, including black and white (I personally have #212121 on #EEEEEE).