我决定尝试 tmux 作为 GNU 屏幕替代品,想知道是否有一种方法可以像 xterm 一样使用鼠标滚动?
可以通过在 tmux 中使用Shift+启用原生 xterm 滚动PageUp
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
Run Code Online (Sandbox Code Playgroud)
但这对鼠标不起作用。我有选择
setw -g mouse-mode on
Run Code Online (Sandbox Code Playgroud)
在我的 tmux.conf 中,但这会导致 tmux 复制模式。和
setw -g mouse-mode off
Run Code Online (Sandbox Code Playgroud)
鼠标滚动根本不起作用。
是否可以在 tmux 中启用本机 xterm 鼠标滚动?