tmux set

编程入门 行业动态 更新时间:2024-10-26 06:27:30
本文介绍了tmux set -g mouse-mode on 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 05:14:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390104.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:tmux   set

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!