Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
newt_wait_for_key

newt_wait_for_key

(PECL)

newt_wait_for_key -- Doesn't return until a key has been pressed

Description

void newt_wait_for_key ( void )

This function doesn't return until a key has been pressed. The keystroke is then ignored. If a key is already in the terminal's buffer, this function discards a keystroke and returns immediately.

See Also

newt_clear_key_buffer()