4 <STRONG>inch</STRONG>, <STRONG>winch</STRONG>, <STRONG>mvinch</STRONG>, <STRONG>mvwinch</STRONG> - get a character and
5 attributes from a <STRONG>curses</STRONG> window
10 <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
12 <STRONG>chtype</STRONG> <STRONG>inch(void);</STRONG>
13 <STRONG>chtype</STRONG> <STRONG>winch(WINDOW</STRONG> <STRONG>*win);</STRONG>
14 <STRONG>chtype</STRONG> <STRONG>mvinch(int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x);</STRONG>
15 <STRONG>chtype</STRONG> <STRONG>mvwinch(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>y,</STRONG> <STRONG>int</STRONG> <STRONG>x);</STRONG>
19 <H2>DESCRIPTION</H2><PRE>
20 These routines return the character, of type <STRONG>chtype</STRONG>, at
21 the current position in the named window. If any
22 attributes are set for that position, their values are
23 OR'ed into the value returned. Constants defined in
24 <STRONG><curses.h></STRONG> can be used with the <STRONG>&</STRONG> (logical AND) operator
25 to extract the character or attributes alone.
28 <STRONG>Attributes</STRONG>
29 The following bit-masks may be AND-ed with characters
30 returned by <STRONG>winch</STRONG>.
32 l l . <STRONG>A_CHARTEXT</STRONG> Bit-mask to extract character
33 <STRONG>A_ATTRIBUTES</STRONG> Bit-mask to extract attributes
34 <STRONG>A_COLOR</STRONG> Bit-mask to extract color-pair field information
39 Note that all of these routines may be macros.
43 <H2>PORTABILITY</H2><PRE>
44 These functions are described in the XSI Curses standard,
49 <H2>SEE ALSO</H2><PRE>
50 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>.