![tmux 中的原生 xterm 鼠标滚动](https://linux22.com/image/1330048/tmux%20%E4%B8%AD%E7%9A%84%E5%8E%9F%E7%94%9F%20xterm%20%E9%BC%A0%E6%A0%87%E6%BB%9A%E5%8A%A8.png)
我已决定尝试使用 tmux 作为 GNU 屏幕的替代品,并想知道是否有办法像在 xterm 中一样用鼠标滚动?
可以通过以下方式在 tmux 中启用 xterm 原生滚动功能Shift+PageUp
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
但这不适用于鼠标。我有选择
setw -g mouse-mode on
在我的 tmux.conf 中,但这会导致 tmux 复制模式。使用
setw -g mouse-mode off
鼠标滚动根本不起作用。
是否可以在 tmux 中启用原生 xterm 鼠标滚动?
答案1
setw -g mode-mouse copy-mode
你仍然需要进入复制模式Shift + PageUp