United States-English |
|
|
HP-UX Reference > Gget_wch(3X)ENHANCED CURSESHP-UX 11i Version 3: February 2007 |
|
NAMEget_wch, mvget_wch, mvwget_wch, wget_wch — get a wide character from a terminal SYNOPSIS#include <curses.h> int get_wch(wint_t *ch); int mvget_wch(int y, int x, wint_t *ch); int mvwget_wch(WINDOW *win, int y, int x, wint_t *ch); int wget_wch(WINDOW *win, wint_t *ch); DESCRIPTIONThese functions read a character from the terminal associated with the current or specified window. If keypad() is enabled, these functions respond to the pressing of a function key by setting the object pointed to by ch to the corresponding KEY_ value defined in <curses.h> and returning KEY_CODE_YES. Processing of terminal input is subject to the general rules described in Input Processing in curses_intro(3X). If echoing is enabled, then the character is echoed as though it were provided as an input argument to ins_wch(), except for the following characters:
If the current or specified window is not a pad, and it has been moved or modified since the last refresh operation, then it will be refreshed before another character is read. RETURN VALUEWhen these functions successfully report the pressing of a function key, they return KEY_CODE_YES. When they successfully report a wide character, they return OK. Otherwise, they return ERR. APPLICATION USAGEApplications should not define the escape key by itself as a single-character function. When using these functions, nocbreak() mode and echo() mode should not be used at the same time. Depending on the state of the terminal when each character is typed, the application may produce undesirable results. SEE ALSObeep(3X), cbreak(3X), ins_wch(3X), keypad(3X), move(3X), curses_intro(3X), see Input Processing, <curses.h>, <wchar.h> (in the X/Open System Interfaces and Headers, Issue 4, Version 2 specification). |
Printable version | ||
|