Skip to main content

ansi_density

Function ansi_density 

Source
pub fn ansi_density(s: &str) -> f64
Expand description

Returns the ratio of ANSI escape characters to total string length.