[−][src]Function winconsole::console::set_cursor_position
pub fn set_cursor_position(column: u16, row: u16) -> WinResult<()>
Sets the position of the console cursor.
Arguments
column
- The column of the new cursor position.row
- The row of the new cursor position.
Examples
Sets the cursor position to the start position of the console.
console::set_cursor_position(0, 0).unwrap();
Errors
ArgumentError
: Returned ifcolumn
orrow
is not within the output buffer.InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.