Function libnotcurses_sys::ffi::ncdirect_get [−][src]
pub unsafe extern "C" fn ncdirect_get(
n: *mut ncdirect,
ts: *const timespec,
ni: *mut ncinput
) -> u32
Expand description
Provide a NULL ‘ts’ to block at length, a ‘ts’ of 0 for non-blocking operation, and otherwise a timespec to bound blocking. Returns a single Unicode code point, or (uint32_t)-1 on error. Returns 0 on a timeout. If an event is processed, the return value is the ‘id’ field from that event. ‘ni’ may be NULL.