A crate for stripping ANSI escape sequences from byte sequences.
This can be used to take output from a program that includes escape sequences and write it somewhere that does not easily support them, such as a log file.
strip function accepts bytes and returns a
Vec of bytes with ANSI escape sequences removed.
extern crate strip_ansi_escapes; use ;
For writing directly to a writer, the
Writer struct may be preferable.
extern crate strip_ansi_escapes; use ; use Writer;
Licensed under either of
- Apache License, Version 2.0 (
- MIT license (
at your option.