Skip to main content

width

Function width 

Source
pub fn width(text: &str) -> usize
Expand description

The display width of text in terminal columns, ignoring escape sequences and control characters and counting wide characters as two.