Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse support behaving incorrectly in tmux #1419

Open
martinus opened this issue Mar 19, 2024 · 2 comments
Open

mouse support behaving incorrectly in tmux #1419

martinus opened this issue Mar 19, 2024 · 2 comments
Labels
Linux 🐧 Linux related issues support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.

Comments

@martinus
Copy link

martinus commented Mar 19, 2024

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.

@martinus
Copy link
Author

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.

@fasterit
Copy link
Member

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

@BenBE BenBE added support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. Linux 🐧 Linux related issues labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux 🐧 Linux related issues support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.
Projects
None yet
Development

No branches or pull requests

3 participants