anstyle_wincon::ansi

Function write_colored

source
pub fn write_colored<S: Write + ?Sized>(
    stream: &mut S,
    fg: Option<AnsiColor>,
    bg: Option<AnsiColor>,
    data: &[u8],
) -> Result<usize>
Expand description

Write ANSI colored text to the stream