如何将鼠标设置在远程HPC上?

发布于 2025-01-27 06:19:43 字数 432 浏览 3 评论 0原文

我正在远程HPC上运行TMUX,但是鼠标滚动为历史记录行不通。我知道通常可以使用:

C-b :

进入命令模式。然后:

setw -g mouse on

打开鼠标。但是当我这样做时,它不喜欢它:

Ambiguous option: mouse

这不是可能的吗?我该怎么做?

相关: https://superuser.com/questions/questions/210125/输出 - 鼠标中 - tmux

I am running tmux on a remote HPC but the mouse scrolling for history does not work. I know it usually works if one does:

C-b :

to get into command mode. Then:

setw -g mouse on

to turn the mouse on. But when I do that it doesn't like it:

Ambiguous option: mouse

Is this not possibel? How do I do it?

related: https://superuser.com/questions/210125/scroll-shell-output-with-mouse-in-tmux

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你对谁都笑 2025-02-03 06:19:43

对我来说,在tmux v1.8上,以下命令有效:

其他鼠标与man tmux

mouse-resize-pane [on | off]
             If on, tmux captures the mouse and allows panes to be resized by dragging on their
             borders.

mouse-select-pane [on | off]
             If on, tmux captures the mouse and when a window is split into multiple panes the
             mouse may be used to select the current pane.  The mouse click is also passed 
             through to the application as normal.

mouse-select-window [on | off]
             If on, clicking the mouse on a window name in the status line will select that win‐
             dow.

mouse-utf8 [on | off]
             If enabled, request mouse input as UTF-8 on UTF-8 terminals.
.
.
.
mode-mouse [on | off | copy-mode]
             Mouse state in modes.  If on, the mouse may be used to enter copy mode and copy a
             selection by dragging, to enter copy mode and scroll with the mouse wheel, or to
             select an option in choice mode.  If set to copy-mode, the mouse behaves as set to
             on, but cannot be used to enter copy mode.

For me, on tmux v1.8, the following command worked:
set -g mode-mouse on

Other mouse related excerpts from man tmux :

mouse-resize-pane [on | off]
             If on, tmux captures the mouse and allows panes to be resized by dragging on their
             borders.

mouse-select-pane [on | off]
             If on, tmux captures the mouse and when a window is split into multiple panes the
             mouse may be used to select the current pane.  The mouse click is also passed 
             through to the application as normal.

mouse-select-window [on | off]
             If on, clicking the mouse on a window name in the status line will select that win‐
             dow.

mouse-utf8 [on | off]
             If enabled, request mouse input as UTF-8 on UTF-8 terminals.
.
.
.
mode-mouse [on | off | copy-mode]
             Mouse state in modes.  If on, the mouse may be used to enter copy mode and copy a
             selection by dragging, to enter copy mode and scroll with the mouse wheel, or to
             select an option in choice mode.  If set to copy-mode, the mouse behaves as set to
             on, but cannot be used to enter copy mode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文