我已经把
set -g mouse on
set -g mouse-select-pane on
Run Code Online (Sandbox Code Playgroud)
在我的 .tmux.conf 文件中,然后我打开 tmux 并创建一个新窗格,但我无法用鼠标切换窗格。还有什么我需要配置的吗?我在 Mac 上使用 zsh 使用 tmux 2.9。
小智 15
马克沃尔克曼的回答对我有用,但它非常难以理解,并且花了大约 15 次尝试弄清楚他在说什么。这里是:
$ exit tmux
$ tmux kill-server
$ tmux
Run Code Online (Sandbox Code Playgroud)
并确保您有set -g mouse on
.tmux.conf 文件,并且您已获取该文件。你真的不需要问题中的其他 conf 行。
# Toggle mouse with ^M; then report it's new status
bind-key C-m set-option -g mouse \; display-message 'Mouse #{?mouse,on,off}'
Run Code Online (Sandbox Code Playgroud)