Closed Zerpet closed 1 year ago
That should be easy fix. Thanks for reporting.
Another solution would be to make the color output configurable.
Maybe we can use new flag, for example nocolor? Or use nocolor as default, and add color flag for output with colors?
I like this idea.
I think we can simply check the term color via termenv as output.HasDarkBackground()
and set colors according to that
How about this? https://github.com/kevincobain2000/gobrew/pull/103
Description
When the system color scheme is set to light, the output of
gobrew
is hard to read because it outputs in yellow font color. This is on a M1 Mac, but I think it will be a problem for Linux users as well. See the below screenshot:Possible solutions
We could try to change the color output based on system color scheme. I haven't researched how to do this in Go, but I hope this is a solved problem across different platforms 🙂
Another solution would be to make the color output configurable.
I'm happy to contribute a PR.