APIs, concepts, guides, and more

◆ _key_pressed_posix()

bool _key_pressed_posix ( )
protected
Linux/macOS terminal: select() with a zero timeout polls stdin without blocking.
Note the terminal is line-buffered by default, so this reports the key after Enter.

Definition at line 42 of file _helpers.py.