newt_wait_for_key

(PECL newt >= 0.1)

newt_wait_for_keyDoesn't return until a key has been pressed

说锟斤拷

newt_wait_for_key ( void ) : 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.

锟斤拷锟斤拷值

没锟叫凤拷锟斤拷值锟斤拷

锟轿硷拷

  • newt_clear_key_buffer() - Discards the contents of the terminal's input buffer without waiting for additional input