Function term_cursor::get_cursor_pos [] [src]

pub fn get_cursor_pos() -> Result<(i32, i32), Error>

Get the current cursor position. The tuple returned contains the (x, y) coordinates of the cursor position. X and Y correspond to columns and rows respectively.


This function could fail for a number of reasons, depending on the OS.