fatih / color

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

Disabling for unsupported terminals, pipes, etc. #38

Closed prologic closed 8 years ago

prologic commented 8 years ago

Hi, I'm evaluating this package and I have a question around disabling colors easily if the detected terminal/output/pipe/etc doesn't support colors?

fatih commented 8 years ago

Yes, but you can always change the Output variable to your own custom writer if you wish.

prologic commented 8 years ago

I see; Thanks!

fatih commented 8 years ago

You're welcome. Feel free to open another issue if you have something in mind.