pub fn write_ansi<W: WriteColor>(writer: W, ansi: &[u8]) -> Result<()>Expand description
Writes a string with ANSI escape code into the colored output stream.
Only SGR (\x1b[…m) is supported. Other input will be printed as-is.
pub fn write_ansi<W: WriteColor>(writer: W, ansi: &[u8]) -> Result<()>Writes a string with ANSI escape code into the colored output stream.
Only SGR (\x1b[…m) is supported. Other input will be printed as-is.