tmux set -g mouse-mode on 不起作用 [英] tmux set -g mouse-mode on doesn't work

查看:39
本文介绍了tmux set -g mouse-mode on 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在环顾四周,人们说把

I've been looking around and people say that putting

set -g mouse-mode on

应该让您在运行 tmux 时滚动终端输出.但是,在将其放入我的 ~/.tmux.conf 文件并在 tmux 会话中说 tmux set -g mouse-mode on 之后,没有任何变化.当我滚动时,我仍然在 tmux 之外,就像使用默认设置在 vim 中滚动一样.

should let you scroll through the terminal output when running tmux. However, after both putting this in my ~/.tmux.conf file and saying tmux set -g mouse-mode on when in a tmux session, nothing changes. When I scroll I still get outside of tmux like scrolling in vim with default settings.

有人知道这是为什么吗?

Anyone know why this is?

推荐答案

因此此选项已在 2.1 版(2015 年 10 月 18 日)中重命名

So this option has been renamed in version 2.1 (18 October 2015)

来自变更日志:

 Mouse-mode has been rewritten.  There's now no longer options for:
    - mouse-resize-pane
    - mouse-select-pane
    - mouse-select-window
    - mode-mouse

  Instead there is just one option:  'mouse' which turns on mouse support

这就是我现在在 .tmux.conf 文件中使用的内容

So this is what I'm using now in my .tmux.conf file

set -g mouse on

这篇关于tmux set -g mouse-mode on 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆