fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.24k stars 615 forks source link

Respect NO_COLOR #92

Closed sanxiyn closed 6 years ago

sanxiyn commented 6 years ago

See http://no-color.org/ for a specification.

fatih commented 6 years ago

Hi @sanxiyn

Is this a standard, if yes who created it?

fatih commented 6 years ago

I'm closing this as I don't think this is needed. We already have a flag and everyone can add this piece of code to their source code, making it no-color compatible:

if _, noColor := os.LookupEnv("NO_COLOR"); noColor {
  color.NoColor = true
}