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

Cha*_*ker 4 tmux

我正在远程 HPC 上运行 tmux,但鼠标滚动历史记录不起作用。我知道如果这样做通常会起作用:

C-b :
Run Code Online (Sandbox Code Playgroud)

进入命令模式。然后:

setw -g mouse on
Run Code Online (Sandbox Code Playgroud)

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

Ambiguous option: mouse
Run Code Online (Sandbox Code Playgroud)

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

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

小智 5

对我来说,在 tmux v1.8 上,以下命令有效:\nset -g mode-mouse on

\n

其他与鼠标相关的摘录man tmux

\n
mouse-resize-pane [on | off]\n             If on, tmux captures the mouse and allows panes to be resized by dragging on their\n             borders.\n\nmouse-select-pane [on | off]\n             If on, tmux captures the mouse and when a window is split into multiple panes the\n             mouse may be used to select the current pane.  The mouse click is also passed \n             through to the application as normal.\n\nmouse-select-window [on | off]\n             If on, clicking the mouse on a window name in the status line will select that win\xe2\x80\x90\n             dow.\n\nmouse-utf8 [on | off]\n             If enabled, request mouse input as UTF-8 on UTF-8 terminals.\n.\n.\n.\nmode-mouse [on | off | copy-mode]\n             Mouse state in modes.  If on, the mouse may be used to enter copy mode and copy a\n             selection by dragging, to enter copy mode and scroll with the mouse wheel, or to\n             select an option in choice mode.  If set to copy-mode, the mouse behaves as set to\n             on, but cannot be used to enter copy mode.\n\n
Run Code Online (Sandbox Code Playgroud)\n