[][src]Function winconsole::console::get_state

pub fn get_state(copy_output: bool, copy_all: bool) -> WinResult<ConsoleState>

Returns a ConsoleState object containing information about the current state of the console.

Arguments

Examples

Retrieves the state of the console, copying the output up to the location of the console cursor.

let state = console::get_state(true, false).unwrap();
println!("{}", state.output.len());

Errors