#include <curses.h>
The ungetch() function pushes ch back onto the input queue until the next call to getch().
The unget_wch() function is similar to ungetch() except that ch can be of type wchar_t.
On success, these functions return OK. Otherwise, they return ERR.
None.
get_wch(3XCURSES), getch(3XCURSES)