Skip to main content

strip

Function strip 

Source
pub fn strip(s: &str) -> String
Expand description

Return s with ANSI escape sequences removed.

CSI, OSC, DCS, SOS, PM, APC, and short ESC sequences are dropped. Printable UTF-8 text and non-ESC control bytes such as \n, \r, and \t are preserved.