有时在离开我的电脑一段时间后,当我打开 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 none和window-status-bell-style none' to your.tmux.conf` 来强制禁用突出显示。