[][src]Function winconsole::console::set_state

pub fn set_state(
    state: &ConsoleState,
    clear: bool,
    write_output: bool
) -> WinResult<()>

Sets the state of the console to a ConsoleState.

Arguments

Examples

println!("Message 1.");
let state = console::get_state(true, false).unwrap();
println!("Message 2.");
console::set_state(&state, true, true).unwrap();
println!("Great Scott!");

Errors