I've reset my computer and now tmux is complaining about my .tmux.conf having these directives:
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window off
set -g default-terminal "screen-256color"
with these errors:
/Users/mdurrant/.tmux.conf:24: unknown option: mode-mouse [0/0]
/Users/mdurrant/.tmux.conf:25: unknown option: mouse-select-pane
/Users/mdurrant/.tmux.conf:26: unknown option: mouse-resize-pane
/Users/mdurrant/.tmux.conf:27: unknown option: mouse-select-window
So I have to comment them out, but then my mouse doesn't work in tmux, which is a pain.
How can I enable the mouse in iTerm2 with tmux?
This works on my other Mac.
I use tmux version 2.1.
mouse onconfigures the following:The default key bindings allow the mouse to be used to select and resize panes, to copy text and to change window using the status line., so it's the equivalent of settingmouse-select-pane,mouse-resize-paneandmouse-select-windowason. Probably close enough to the original configuration; though not exactly the same. – davidjb Aug 06 '16 at 07:05