htop icon indicating copy to clipboard operation
htop copied to clipboard

Insufficient contrast on light background

Open savchenko opened this issue 1 year ago • 3 comments

Using the "light terminal" theme and default "Linux console" colours:

image

Note the header and selected PID line. Would you consider inverting colours or increasing brightness of the highlight (background colour) ?

savchenko avatar Jul 06 '24 10:07 savchenko

Unfortunately due to a limitation in how background colors are handled with ncurses you can't have light background colors in a nicely portable way. It is possible, but usually involves hacks, as the bit for bright background is often misinterpreted as blinking foreground … ;-)

BenBE avatar Jul 06 '24 13:07 BenBE

Wild. In the age of TrueColour-capable terminals... Made me check ncurses webpage:

The package was originated as pcurses, written by Pavel Curtis around 1982

No further questions.

savchenko avatar Jul 06 '24 13:07 savchenko

@savchenko You should adjust the color palette of your terminal emulator. It isn't something we can adjust in htop's side. IMHO, we could have an alternative of using white text on a dark background for highlighted item, but the benefit of implementing that would be too small.

Explorer09 avatar Jul 06 '24 18:07 Explorer09