[−][src]Function winconsole::console::set_buffer_size
pub fn set_buffer_size(width: u16, height: u16) -> WinResult<()>
Sets the size of the output buffer.
Arguments
width
- The amount of columns the screen buffer should have.height
- The amount of rows the screen buffer should have.
Examples
console::set_buffer_size(200, 100).unwrap();
Errors
ArgumentError
: Returned ifwidth
orheight
is less than the window's minimum amounts.InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.