htop-dev / htop

htop - an interactive process viewer

Home Page:https://htop.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mouse support behaving incorrectly in tmux

martinus opened this issue · comments

Mouse support for htop works perfectly when not in tmux. But when inside tmux, clicks seem to be captured incorrectly. For whatever reason it always opens the "Sort by" menu, regardless where I click. Other applications like btop register clicks correctly.

I've suspected my tmux configuration is the cause, but I have the same behavior when I remove my tmux config.
I'm using tmux next-3.4 and htop 3.3.0 on Fedora Linux 39.

I just discovered it works with TERM=screen htop. The default term for tmux nowadays seems to be tmux-256color, and it doesn't work with that.

Cannot reproduce with tmux 3.3a, TERM=tmux-256color as provided by Debian 12 (bookworm).
On that setup the mouse clicks work as expected.