Skip to main content

display_width

Function display_width 

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

Display columns text will occupy, as the terminal draws it. Scalar counts undercount CJK and overcount combining marks; layout math that budgets cells must use this.