pub fn string_width(bytes: &[u8], mode: WidthMode, eaw_wide: bool) -> usize
Return the display width of bytes ignoring ANSI escapes.
bytes
Non-UTF-8 bytes contribute no width.