tmux status bar highlights the session name in red if a window fails

扶醉桌前 提交于 2019-12-11 00:34:54

问题


I'm using tmux 2.0, installed on OSX with Homebrew. My terminal uses the solarized colour scheme.

If I move my tmux.conf (to ensure I'm using default settings) then my status line looks like this:

If I then run a process which fails, the session name gets highlighted in red:

No matter what I do, this stays highlighted in red. I've tried all the settings I can find to try and change this behaviour but I haven't found any that change it at all.

The failing process is the ruby command line tool guard. I'm making it fail because it depends on zeus and I don't have zeus running. In this scenario, guard shows an error in the terminal but doesn't exit. This is the scenario that this red highlighting happens in.

If I make it fail fatally and exit (e.g. if there is no Guardfile) then the highlighting doesn't happen.

I assume that tmux is recognising that some kind of error has happened (because the process is returning an error response code?) and is using the highlighting to alert me to that.

Some of the settings I've tried to modify include:

  • window-status-activity-attr
  • window-status-activity-bg
  • display-panes-active-colour
  • bell-action
  • bell-on-alert

回答1:


Turns out this is actually a feature of Guard: https://github.com/guard/guard/wiki/System-notifications#tmux



来源:https://stackoverflow.com/questions/33054954/tmux-status-bar-highlights-the-session-name-in-red-if-a-window-fails

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!