You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the strings that are printed via the table.Formatter contain ANSI escape codes, like color sequences, the formatting is off.
The escape codes are counted as characters but are not shown on the terminal.
Replace the tabwriter with an implementation that ignores asci escape codes when calculating the column width.
This will allow to show color output in commands that currently aren't like baur status.
The text was updated successfully, but these errors were encountered:
nocive
changed the title
formatter: format output correctly when text contains ANSCI escape codes
formatter: format output correctly when text contains ANSI escape codes
Jan 26, 2024
When the strings that are printed via the
table.Formatter
contain ANSI escape codes, like color sequences, the formatting is off.The escape codes are counted as characters but are not shown on the terminal.
Replace the tabwriter with an implementation that ignores asci escape codes when calculating the column width.
This will allow to show color output in commands that currently aren't like
baur status
.The text was updated successfully, but these errors were encountered: