Function fwdansi::write_ansi [−][src]
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.