Skip to main content

string_width

Function string_width 

Source
pub fn string_width(bytes: &[u8], mode: WidthMode, eaw_wide: bool) -> usize
Expand description

Return the display width of bytes ignoring ANSI escapes.

Non-UTF-8 bytes contribute no width.