为什么我第一次打开 tmux 时我的窗口会高亮显示?

Sam*_*off 5 tmux

有时在离开我的电脑一段时间后,当我打开 tmux 时,会话中的所有窗口都有某种背景突出显示:

在此处输入图片说明

一旦我循环它们,它就会消失,只有活动窗口有一个星号:

在此处输入图片说明

为什么会发生这种情况,是否可以修复它以便窗口标签永远不会有突出显示的背景?

小智 8

来自`man tmux':

 STATUS LINE
 [...]
 By default, the window list shows the index, name and (if
 any) flag of the windows present in the current session in ascending
 numerical order.  It may be customised with the window-status-format and
 window-status-current-format options.  The flag is one of the following
 symbols appended to the window name:

       Symbol    Meaning
       *         Denotes the current window.
       -         Marks the last window (previously selected).
       #         Window is monitored and activity has been detected.
       !         A bell has occurred in the window.
       ~         The window has been silent for the monitor-silence
                 interval.
       Z         The window's active pane is zoomed.

 The # symbol relates to the monitor-activity window option.  The window
 name is printed in inverted colours if an alert (bell, activity or
 silence) is present.
Run Code Online (Sandbox Code Playgroud)

由于您没有提供您的.tmux.conf,因此很难判断是什么触发了警报。尝试C-b : set-option -g monitor-activity off; set-option -g monitor-silence 0; set-option -g bell-action none并测试问题是否仍然存在。您还可以通过添加window-status-activity-style nonewindow-status-bell-style none' to your.tmux.conf` 来强制禁用突出显示。