ncdirect_cursor_yx

Function ncdirect_cursor_yx 

Source
pub unsafe extern "C" fn ncdirect_cursor_yx(
    n: *mut ncdirect,
    y: *mut c_uint,
    x: *mut c_uint,
) -> c_int
Expand description

Get the cursor position, when supported. This requires writing to the terminal, and then reading from it. If the terminal doesn’t reply, or doesn’t reply in a way we understand, the results might be deleterious.