[go: up one dir, main page]

Function write_ansi

Source
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.