DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.84k stars 79 forks source link

Overmind is not showing colors properly #6

Closed AlexVPopov closed 6 years ago

AlexVPopov commented 6 years ago

Hello,

Thank you for the gem. I have a few issues with colors, however I'm not sure wether these are issues with my color scheme of iTerm2, tmux or overmind. I work on OS X with iTerm2. Here are my issues:

  1. When I just start sidekiq, the color of the Karate guy is red:
red-karate-guy

When I start overmind, the Karate guy is black/gray:

gray-karate-guy
  1. In foreman, different processes have different colors:
foreman-colors

In overmind, this is not the case (see second image of item 1).

So far I have only described facts and finally my question - are the two points expected behavior or are they due to some misconfiguration in my environment?

DarthSim commented 6 years ago

Hello,

  1. Sidekiq prints its logo via STDERR, that's how it becomes red in some terminals. Since Overmind reads both stdout and stderr through a single pty, it makes no difference between them. I don't think this is a kind of problem, so I don't want to complicate the code, open the second pty and so on just to make Sidekiq logo red, sorry. Nevertheless, all other coloring made with escape sequences should work fine.

  2. Which version of Overmind do you use? Does the problem appear with 1.0.6?

DarthSim commented 6 years ago

Oh, I found the cause of the second issue. As far as I see, you're using "Solarized Light" theme. The problem is here:

Overmind uses green, yellow, blue, magenta and cyan for the first five processes. Unlike Foreman, Overmind prints process names bold and bright, and as you see most of these colors are gray-scaled in "Solarized Light". So it's not quite Overmind's issue. I believe I'll make a feature for colors redefinition sometime, but currently, I'm going to close the issue.

AlexVPopov commented 6 years ago

Hello and thank you for the response.

  1. This makes sense. It's definitely a first-world problem, that Karate guy is black in overmind :D

  2. Wow, thank you. As I suspected, it was a problem in my configuration. O.K. thank you. Nevertheless, I'll keep using overmind, as I'd like to test it.

AlexVPopov commented 6 years ago

I confirm it works with Dark color scheme:

overmind-dark