anstyle_wincon::windows

Function set_colors

source
pub fn set_colors<S: AsHandle>(
    stream: &mut S,
    fg: AnsiColor,
    bg: AnsiColor,
) -> Result<()>
Available on Windows only.
Expand description

Apply colors to future writes

Note: Make sure any buffers are first flushed or else these colors will apply