-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[bug] color.Output has indent error when using tabwriter.Writer #175
Comments
Just ran into the same thing, did you end up solving it? I tried both Before using color: After: Edit: I think this is actually a
|
for me this fix works w.Init(os.Stdout, 0, 8, 4, ' ', 0) |
It's an issue with tabwriter because the escape sequences aren't always the same length, they get used as part of the cell width calculations so some cells appear wider than they are really and don't render correctly See https://stackoverflow.com/questions/35398497/how-do-i-get-colors-to-work-with-golang-tabwriter
|
Env:
OS: windows 10
go: 1.17.2
bash: cmd powershell gitbash
Output:
The text was updated successfully, but these errors were encountered: