notcurses_get_nblock

Function notcurses_get_nblock 

Source
pub fn notcurses_get_nblock(
    nc: &mut Nc,
    input: Option<&mut NcInput>,
) -> NcResult_i32
Expand 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().