NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO
#include <curses.h>int ungetch(int ch);
Is the single byte character to be put back in the input queue for the next call to getch(3XCURSES) .
Is the wide character to be put back in the input queue for the next call to get_wch(3XCURSES) .
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.
NAME | SYNOPSIS | PARAMETERS | DESCRIPTION | RETURN VALUES | ERRORS | SEE ALSO