[][src]Function winconsole::window::set_cursor_position

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

Sets the screen position of the cursor.

Examples

let position = window::get_cursor_position().unwrap();
window::set_cursor_position(position.x + 1, position.y + 1).unwrap();

Errors