[−][src]Function winconsole::console::get_largest_window_size
pub fn get_largest_window_size() -> WinResult<Vector2<u16>>
Returns the size of the largest possible console window in character cells, based on the current font and the size of the display.
Examples
let largest_size = console::get_largest_window_size().unwrap(); println!("Largest size: {:?}", largest_size);
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.