strip_ansi_escapes

Function strip

Source
pub fn strip<T>(data: T) -> Vec<u8>
where T: AsRef<[u8]>,
Expand description

Strip ANSI escapes from data and return the remaining bytes as a Vec<u8>.

See the module documentation for an example.