[−][src]Function winconsole::console::set_cursor_visible
pub fn set_cursor_visible(visible: bool) -> WinResult<()>
Sets the visibility of the console cursor.
Arguments
visible
- True if the cursor should be visible, false otherwise.
Examples
Hides the console cursor.
console::set_cursor_visible(false).unwrap();
Errors
InvalidHandleError
: Returned if an invalid handle to the console output is retrieved or used.IoError
: Returned if an OS error occurs.