[−][src]Function bear_lib_terminal::terminal::peek_event
pub fn peek_event() -> Option<Event>
Returns the next event in the queue if it's available without popping it therefrom, otherwise returns None
.
If one intends on waiting for events, the wait_event()
function is recommended.
If one intends on popping the events, the read_event()
function is recommended.
If one intends on just checking if an event is ready, the has_input()
function is recommended.
This is equivalent to the terminal_peek()
C API function.