]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/curs_inch.3x.html
ncurses 4.1
[ncurses.git] / Ada95 / html / curs_inch.3x.html
1 <HTML>
2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
3 <PRE>
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
6
7
8 </PRE>
9 <H2>SYNOPSIS</H2><PRE>
10        <STRONG>#include</STRONG> <STRONG>&lt;curses.h&gt;</STRONG>
11
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>
16
17
18 </PRE>
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>&lt;curses.h&gt;</STRONG> can be used with the <STRONG>&amp;</STRONG> (logical  AND)  operator
25        to extract the character or attributes alone.
26
27
28    <STRONG>Attributes</STRONG>
29        The  following  bit-masks  may  be  AND-ed with characters
30        returned by <STRONG>winch</STRONG>.
31
32        l  l  .   <STRONG>A_CHARTEXT</STRONG>     Bit-mask  to  extract   character
33        <STRONG>A_ATTRIBUTES</STRONG>   Bit-mask   to  extract  attributes  <STRONG>A_COLOR</STRONG>
34             Bit-mask to extract color-pair field information
35
36
37 </PRE>
38 <H2>NOTES</H2><PRE>
39        Note that all of these routines may be macros.
40
41
42 </PRE>
43 <H2>PORTABILITY</H2><PRE>
44        These functions are described in the XSI Curses  standard,
45        Issue 4.
46
47
48 </PRE>
49 <H2>SEE ALSO</H2><PRE>
50        <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>.
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 </PRE>
67 </BODY>
68 </HTML>