[][src]Function winconsole::console::fill_character

pub fn fill_character(
    chr: char,
    column: u16,
    row: u16,
    max_length: impl Into<Option<u32>>
) -> WinResult<u32>

Fills the console window with a specified character starting at a specified location, and returns the number of cells which were filled. Note that this only changes the character; the colors of each cell will remain the same.

Arguments

Examples

Fills the entire console with 'Z'.

console::fill_character('Z', 0, 0, None).unwrap();

Fills the first ten cells with 'G'.

console::fill_character('G', 0, 0, 10).unwrap();

Errors