Home > PHP > Function > Newt > newt_wait_for_key()

newt_wait_for_key()

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

Syntax

newt_wait_for_key ()

Arguments

-

Description

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.

Version

PHP PECL newt >= 0.1

Return value

No value is returned.