Function visual_width

Source
pub fn visual_width(s: &str) -> usize
Expand description

Calculate visual width of a string, handling ANSI color codes