如果窗口失败,tmux 状态栏会以红色突出显示会话名称 [英] tmux status bar highlights the session name in red if a window fails

查看:34
本文介绍了如果窗口失败,tmux 状态栏会以红色突出显示会话名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 tmux 2.0,安装在 OSX 上的 Homebrew.我的终端使用日晒配色方案.

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

如果我移动我的 tmux.conf(以确保我使用的是默认设置),那么我的状态行看起来像这样:

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.

失败的过程是 ruby​​ 命令行工具 guard.我让它失败了,因为它取决于 zeus 而我没有运行 zeus.在这种情况下,guard 在终端中显示错误但不退出.这就是这种红色突出显示发生的场景.

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.

如果我让它致命地失败并退出(例如,如果没有 Guardfile)那么突出显示不会发生.

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

我假设 tmux 意识到发生了某种错误(因为该进程正在返回错误响应代码?)并使用突出显示来提醒我.

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-color
  • 铃铛动作
  • 响铃警报

推荐答案

原来这实际上是 Guard 的一个特性:https://github.com/guard/guard/wiki/System-notifications#tmux

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

这篇关于如果窗口失败,tmux 状态栏会以红色突出显示会话名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆