[][src]Function winconsole::window::set_size

pub fn set_size(width: i32, height: i32) -> WinResult<()>

Sets the size of the console window.

Examples

let size = window::get_size().unwrap();
window::set_size(size.x + 1, size.y + 1).unwrap();

Errors