Magnus
Magnus

Reputation: 3712

How to fix/restore mouse controls in tmux on iTerm2?

I've been playing around with my iTerm2 shell setup. Previously I'd been able to use mouse controls to resize panes, etc. in tmux by simply adding set -g mouse on to .tmux.conf.

Now, however, it's just not working in iTerm2 (but it is working in the built-in Terminal app). I'm not sure what I did to mess things up. My best guess is that this line that I had used in .tmux.conf was the culprit.

set -g terminal-overrides 'xterm*:smcup@:rmcup@'

No idea what that syntax means (I copied/pasted from a SO answer). Even when I remove that line from .tmux.conf, the mouse mode still doesn't work. Any ideas how to fix/restore standard tmux-mouse-mode behavior in iTerm2?

Upvotes: 9

Views: 6299

Answers (1)

Magnus
Magnus

Reputation: 3712

In my case, I must have somehow caused this "Enable Mouse Reporting" setting to get unchecked. Re-checking solved my problem.

UPDATE: Sometimes all these settings are correct, but only a restart fixes it.

enter image description here

Upvotes: 40

Related Questions