我的.tmux.conf里有这些
#set -g mouse-utf8 on
set -g mouse on
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Scroll History
set -g history-limit 30000
set -g set-titles on
set -g focus-events on
# but don't change tmux's own window titles
set -w -g automatic-rename off
set-option -g default-shell /bin/zsh如果不使用快捷键,我无法使用鼠标或将焦点切换到不同的窗格。如果不使用快捷键,我也无法切换选项卡。我使用的是tmux 2.1。
发布于 2016-02-17 18:11:07
要在会话中的窗格和窗口之间切换,请在.tmux.conf中添加以下内容
set -g mode-mouse on set -g mouse-select-pane on set -g mouse-select-window on
作为一个额外的帮助,使用鼠标调整窗格的大小也很有用,为此,可以使用这一行:set -g mouse-resize-pane on
https://stackoverflow.com/questions/35444150
复制相似问题