[][src]Function winconsole::window::set_position

pub fn set_position(x: i32, y: i32) -> WinResult<()>

Sets the position of the console window.

Examples

let position = window::get_position().unwrap();
window::set_position(position.x + 1, position.y + 1).unwrap();

Errors