fatih / color

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

Colors not appearing in output view #170

Closed hlindberg closed 1 year ago

hlindberg commented 1 year ago

I run validation logic on save of certain files. The output from my validator has color turned on even when output is not a tty. Colored output is important to users as it can otherwise be difficult to visually parse the output.

What happens now:

When output appears colors are stripped

What is expected: Coloured output from the command is shown in the Output for Run on Save.

According to this article: https://stackoverflow.com/questions/57940666/how-can-i-get-colored-output-in-vs-code-output-window color coded output is determined by the extension that manages the Output, so it does not seem like I can do anything about this via configuration.

hlindberg commented 1 year ago

So sorry, managed to log this for the wrong project. Sorry for the noise!