htop
htop copied to clipboard
When htop is run in tmux, some numbers are not shown
I realize that this is unclear, so here's a screenshot with htop running outside of tmux:

And here's one with htop running in tmux:

The screenshots were made on a machine running Void Linux; I suspect that the issue is present on macOS too; I'll get back to you when I check.
I tested this on macOS and the bug does also seem to be present there, but I also found something interesting:


So the info is actually there, but the text color seems to be the same as the background color (or at least very similar).
This seems to affect all the shadowed (dark grey) text.
I have non-256color settings in $TERM (screen vs. screen-256color for tmux)... I guess that works around it for me.
The dark grey is rounded to black, so you have black text on black background. Wondering why tmux does not show the color correctly. What's your $TERM set to?
@eworm-de inside tmux it's screen, and outside it's xterm-256color. Running htop with TERM set to screen-256color fixes the bug.
@mhmdanas Could you please run https://gist.githubusercontent.com/ivanbrennan/8ce10a851851e5f04728d8da900ef1c5/raw/7a4695880413e3478631989366407d9b704f786f/show-256-colors.sh inside your tmux with screen set as $TERM and attach a screenshot of the result here?
TERM is screen:
The htop color scheme Broken Gray was designed for these terminals. Its also not just about $TERM as on some systems TERM=screen ./htop works fine. #251 is probably related.
Possibly related : https://github.com/hishamhm/htop/issues/14