Skip to main content

strip_ansi_codes

Function strip_ansi_codes 

Source
pub fn strip_ansi_codes(text: &str) -> String
Expand description

Strip all ANSI escape sequences from text

§Arguments

  • text - The text containing ANSI escape sequences

§Returns

The text with all ANSI sequences removed