mvwin_wch3ncurses
Get a curses complex character from a window
Part of in_wch(3ncurses).
Overview
win_wch copies the curses complex character at the cursor position in win into wch. Use getcchar(3NCURSES) to extract its character code, attributes, and color pair identifier. ncurses(3NCURSES) describes the variants of this function.
Return value
These functions return OK on success and ERR on failure.
In ncurses, they return ERR if win is NULL.
Functions prefixed with “mv” first perform cursor movement and fail if the position (y, x) is outside the window boundaries.
Notes
in_wch, mvin_wch, and mvwin_wch may be implemented as macros.
Unlike winch(3NCURSES), win_wch and its variants store the value of the retrieved character in an additional wch parameter instead of the return value.
Portability
X/Open Curses Issue 4 describes these functions. It specifies no error conditions for them.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch) to Debian 7 (Wheezy)
- Debian 6.0 (Squeeze) to Debian 4.0 (Etch)
- Debian 3.1 (Sarge)