You could strip out the ANSI escapes (which are not part of Unicode) before calling textwidth
, e.g. Strange characters in windows terminal - #4 by digital_carver
But probably better to use StyledStrings
You could strip out the ANSI escapes (which are not part of Unicode) before calling textwidth
, e.g. Strange characters in windows terminal - #4 by digital_carver
But probably better to use StyledStrings