htop icon indicating copy to clipboard operation
htop copied to clipboard

When htop is run in tmux, some numbers are not shown

Open triallax opened this issue 2 years ago • 8 comments

I realize that this is unclear, so here's a screenshot with htop running outside of tmux:

no-tmux

And here's one with htop running in tmux: 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.

triallax avatar Sep 30 '21 15:09 triallax

I tested this on macOS and the bug does also seem to be present there, but I also found something interesting: macos-htop-bug-2

macos-htop-bug

So the info is actually there, but the text color seems to be the same as the background color (or at least very similar).

triallax avatar Sep 30 '21 17:09 triallax

This seems to affect all the shadowed (dark grey) text.

BenBE avatar Sep 30 '21 20:09 BenBE

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 avatar Oct 08 '21 11:10 eworm-de

@eworm-de inside tmux it's screen, and outside it's xterm-256color. Running htop with TERM set to screen-256color fixes the bug.

triallax avatar Oct 08 '21 12:10 triallax

@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?

fasterit avatar Oct 15 '21 06:10 fasterit

TERM is screen:

triallax avatar Oct 15 '21 07:10 triallax

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.

cgzones avatar Oct 15 '21 15:10 cgzones

Possibly related : https://github.com/hishamhm/htop/issues/14

3f6a avatar Mar 26 '24 20:03 3f6a