patch_seq_terminal_read_char_nonblock

Function patch_seq_terminal_read_char_nonblock 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_terminal_read_char_nonblock( stack: Stack, ) -> Stack
Expand description

Read a single character from stdin (non-blocking)

Stack effect: ( – Int )

Returns:

  • 0-255: The byte value read
  • -1: No input available, EOF, or error

This function returns immediately even if no input is available.

§Safety

Always safe to call