Open fanybook opened 1 year ago
Just ran into the same thing, did you end up solving it?
I tried both color.RedString
and color.New(color.FgRed).SprintFunc()
with no luck...
Before using color:
After:
Edit: I think this is actually a text/tabwriter
problem because the same issue when just using color codes directly:
colorReset := "\033[0m"
colorRed := "\033[31m"
colorGreen := "\033[32m"
colorYellow := "\033[33m"
for me this fix works
w.Init(os.Stdout, 0, 8, 4, ' ', 0)
Env: OS: windows 10 go: 1.17.2 bash: cmd powershell gitbash
Output: