htop icon indicating copy to clipboard operation
htop copied to clipboard

Implement different display types for bar meters

Open rustedusted opened this issue 2 months ago • 5 comments

Allow bar meters to enable "sub-pixel" rendering.

Bar meter styles can be changed in setup (F2) under Display Options.

Co-Authored-By: Benny Baumann [email protected]

rustedusted avatar Oct 25 '25 12:10 rustedusted

referencing with issue #647 the previous merge request was a mess

rustedusted avatar Oct 25 '25 12:10 rustedusted

One more thing the bar type option is visible in F2 even when we do htop -U should i disable it when opened with -U or keep it there??

the function didn't have any if statement in it so felt awkward to do that it's just a line of difference to add

rustedusted avatar Oct 25 '25 12:10 rustedusted

[x] Resolve the conflict marker in the latest commit(not using the previous commit) [x] Handle storing the setting to disk [ ] Proper guarding against invalid barType settings in Meter.c(i do not understand this, i just put asserts in the Meter.c line 168)(please let me know if there's anything else) [x] Handle when htop is configured without Unicode support(done using header guards #ifdef HAVE_LIBNCURSESW) [x] Update Commit message

rustedusted avatar Oct 25 '25 12:10 rustedusted

Please squash/fixup changes into the original commit by rebasing. Details are in the style guide.

BenBE avatar Oct 25 '25 20:10 BenBE

here's the latest commit that contains all the suggested things

rustedusted avatar Oct 26 '25 08:10 rustedusted