Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   curs_getch.3x    ( 3 )

получить (или вернуть) символы с клавиатуры терминала curses (get (or push back) characters from curses terminal keyboard)

  Name  |  Synopsis  |  Description  |    Return value    |  Note  |  Portability  |  See also  |

Возвращаемое значение (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.