Skip to main content

strip_ansi_bytes

Function strip_ansi_bytes 

Source
pub fn strip_ansi_bytes(input: &[u8]) -> Vec<u8> 
Expand description

Strip ANSI escape codes from arbitrary bytes, preserving non-control bytes.

This is the preferred API when input may contain raw C1 (8-bit) controls.