Pushes a keystroke to the push-back buffer of the application screen.
#include <screen.h> int ungetkey ( int keytype, int modifier, int scancode);
(IN) Specifies the type of key. For a list, see Section 23.2, Key Types.
(IN) Specifies whether the key includes a modifier. For a list, see Section 23.3, Key Status.
(IN) Specifies the codes emitted by the keyboard when a key is pressed.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
The pushed-back keystroke is the next key read during a call to such functions as getkey.