Curses Library Functions cursinch(3CURSES)
NAME
cursinch, inch, winch, mvinch, mvwinch - get a character
and its attributes from a curses window
SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ]
#include
chtype inch(void);
chtype winch(WINDOW *win);
chtype mvinch(int y, int x);
chtype mvwinch(WINDOW *win, int y, int x);
DESCRIPTION
With these routines, the character, of type chtype, at the
current position in the named window is returned. If any
attributes are set for that position, their values are OR-ed
into the value returned. Constants defined in can
be used with the logical AND (&) operator to extract the
character or attributes alone.
Attributes
The following bit-masks can be AND-ed with characters
returned by winch().
ACHARTEXT Bit-mask to extract character
ATRIBUTES Bit-mask to extract attributes
ACOLOR Bit-mask to extract color-pair field infor-
mation
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions cursinch(3CURSES)
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
Note that all of these routines may be macros.
SunOS 5.11 Last change: 31 Dec 1996 2
|