Skip to main content

strip_ansi

Function strip_ansi 

Source
pub fn strip_ansi(input: &str) -> String
Expand description

Strip ANSI CSI escape sequences from a borrowed string.

Used by clap-error rendering and by stderr UI helpers in JSON mode.