This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
原始答案(已弃用)
试试这个:
它可以与
mouse-select-pane on
和mouse-select-window on
一起使用> 选项。更新
tmux 2.1 之后,
mode-mouse
选项不再可用。您现在应该使用:捕获鼠标事件。
Origin Answer (deprecated)
Try this:
It can be used with the
mouse-select-pane on
andmouse-select-window on
options.Update
After tmux 2.1,
mode-mouse
option is no longer available. You should now use:to capture mouse event.
Tmux 2.1 有一些变化
鼠标模式已被重写。现在不再有以下选项:
只有一个选项:“鼠标”,用于打开鼠标支持
完全。
所以
set -g mouse on
更新:
我必须使用此脚本使滚动再次工作:
https://github.com/NHDaly/tmux-scroll-copy-mode
There are some changes for Tmux 2.1
Mouse-mode has been rewritten. There's now no longer options for:
Instead there is just one option: 'mouse' which turns on mouse support
entirely.
So
set -g mouse on
Update:
I have to use this script to make scrolling work again:
https://github.com/NHDaly/tmux-scroll-copy-mode
来自 https://blogs.oracle.com/samf/entry/smcup_rmcup_hate
在 .tmux 中.conf:
例如,在 tmux 中的 vim 中滚动鼠标会滚动 vim,而不是 tmux 历史记录。
非常有益,与历史滚动非常不同。
From https://blogs.oracle.com/samf/entry/smcup_rmcup_hate
In .tmux.conf:
where, for instance, mouse scrolling in vim in tmux scrolls vim, NOT tmux history.
Very beneficial, and VERY different from history scrolling.
对于 Mac OSX 10.9
首先安装 SimpleSIMBL
然后安装 MouseTerm
将其添加到您的 ~/.tmux.conf
对于 VIM 滚动,将其添加到您的 ~/.tmux.conf ~/.vimrc
注意:另请参阅:在 Mac 终端的 Vim 内滚动
For Mac OSX 10.9
First Install SimpleSIMBL
Then Install MouseTerm
Add this to your ~/.tmux.conf
For VIM Scrolling add this to your ~/.vimrc
Notes: see also: Scrolling inside Vim in Mac's Terminal