Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

iterm2

tmux

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?

like image 417
Magnus Avatar asked Dec 08 '22 10:12

Magnus


1 Answers

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

enter image description here

like image 53
Magnus Avatar answered Dec 28 '22 14:12

Magnus