leg100/pug

Support NO_COLOR to turn off the color scheme

chenrui333 opened this issue · 5 comments

Would be good to support NO_COLOR env to disable the color output.

https://no-color.org/

Specifying NO_COLOR does already turn off colors in Pug, but I noticed the following:

  • the current item is no longer highlighted and there is no way to distinguish it
  • same with selected items
  • the output from terraform processes is still colored

Is this what you are seeing?

Out of interest, what is the use case?

it is used for CI to check the output in my case, but it would be good to support NO_COLOR in general

Can you please confirm whether you are seeing the above?

Pug serves no purpose in a CI context, so I don't see a use case.

I don't think NO_COLOR makes much sense for a TUI. I checked out both tig, and k9s, both well established TUIs, and neither supports NO_COLOR.

yeah, it is fine.