получить (или вернуть) символы с клавиатуры терминала curses  (get (or push back) characters from curses terminal keyboard)
  
Возвращаемое значение (Return value)
All routines return the integer ERR upon failure and an integer
       value other than ERR (OK in the case of ungetch) upon successful
       completion.
          ungetch
               returns ERR if there is no more room in the FIFO.
          wgetch
               returns ERR if the window pointer is null, or if its
               timeout expires without having any data, or if the
               execution was interrupted by a signal (errno will be set
               to EINTR).
       Functions with a 'mv' prefix first perform a cursor movement
       using wmove, and return an error if the position is outside the
       window, or if the window pointer is null.