News for hackers. Stuff that matters.
Re:How to Choose Colors for Your CLI Applications (2023) by JohnLeitch on Thursday January 29, 2026 @12:57PM (#46813789)
> 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.

Re:How to Choose Colors for Your CLI Applications (2023) by layer8 on Thursday January 29, 2026 @03:20PM (#46816009)
That’s fine, but please make the colors configurable then.

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

Re:How to Choose Colors for Your CLI Applications (2023) by Joker_vD on Thursday January 29, 2026 @01:13PM (#46814050)
> 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).

Re:How to Choose Colors for Your CLI Applications (2023) by reactordev on Thursday January 29, 2026 @06:33PM (#46818427)
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.