pub fn notcurses_get_nblock(
nc: &mut Nc,
input: Option<&mut NcInput>,
) -> NcResult_i32Expand description
Reads input without blocking.
Will optionally write the event details in input.
If no event is immediately ready, returns 0.
In case of an invalid read (including on EOF) -1 is returned.
Method: Nc.get_nblock().