Retrieves one key-press from the keyboard of the application screen, if this screen is not identical to the System Console or System Logger screen.
#include <screen.h> int getkey ( int *keytype, int *modifier, int *scancode);
(OUT) Specifies the type of key. For a list, see Section 23.2, Key Types.
(OUT) Specifies whether the key includes a modifier. For a list, see Section 23.3, Key Status.
(OUT) Specifies the codes emitted by the keyboard when a key is pressed.
If successful, returns 0.
The key is echoed to the screen.