Closed gaeulbyul closed 2 years ago
This commit will fix #40.
Replacing os.Stdout with color.Output will fix the problem on Windows's console.
Internally, color.Output is same as colorable.NewColorableStdout(), according to https://github.com/fatih/color/blob/acd5f3bb28257af7d3c4817ab6842e39bd0fcf34/color.go#L25-L27
color.Output
colorable.NewColorableStdout()
see also: https://godocs.io/github.com/mattn/go-colorable#NewColorableStdout
Nice. Thanks @gaeulbyul
This commit will fix #40.
Replacing os.Stdout with color.Output will fix the problem on Windows's console.
Internally,
color.Output
is same ascolorable.NewColorableStdout()
, according to https://github.com/fatih/color/blob/acd5f3bb28257af7d3c4817ab6842e39bd0fcf34/color.go#L25-L27see also: https://godocs.io/github.com/mattn/go-colorable#NewColorableStdout