[][src]Function winconsole::console::get_window_size

pub fn get_window_size() -> WinResult<Vector2<u16>>

Returns the size of the window in character cells. These dimensions also serve as minimum values for the size of the buffer.

Examples

let size = console::get_window_size().unwrap();
println!("Minimum columns: {}. Minimum rows: {}.", size.x, size.y);

Errors