[][src]Function winconsole::console::fill_colors

pub fn fill_colors(
    colors: (ConsoleColor, ConsoleColor),
    column: u16,
    row: u16,
    max_length: impl Into<Option<u32>>
) -> WinResult<u32>

Fills the console window with a specified set of colors starting at a specified location, and returns the number of cells which were filled.

Arguments

Examples

Fills the entire console with a blue foreground and red background.

console::fill_colors((ConsoleColor::Blue, ConsoleColor::Red), 0, 0, None).unwrap();

Errors