fatih / color

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

Changed README Disable section to Disable/Enable #79

Closed jeffwillette closed 6 years ago

jeffwillette commented 6 years ago

The Disable section led me to believe that piping the output to somewhere else would result in active color codes unless explicitly disabled. This is not the case, however, because I believe the go-isatty package is predicting if the output device is a tty and disabling them if it is not....

When piping to less I found that color was automatically disabled, I have edited the README file to be more descriptive about the behavior of color

fatih commented 6 years ago

Yeah we check for TTY existence. This makes sense though. Thanks for improvement!