pub fn ungetch(ch: char) -> Result<(), NCurseswError>
Push ch so the next getch() will return it.
ch
getch()
Note: Only one ch can be pushed before getch() is called.