flushinp(3cur)
Name
flushinp − discard typeahead
Syntax
#include <cursesX.h>
int flushinp()
Description
Any typeahead input that has not been read by the program is discarded.
Return Values
The flushinp function returns OK on success and ERR on error.