Merge from vendor branch OPENSSH:
[dragonfly.git] / lib / libncurses / man / curs_inch.3
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright (c) 1998 Free Software Foundation, Inc.                        *
4 .\"                                                                          *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
6 .\" copy of this software and associated documentation files (the            *
7 .\" "Software"), to deal in the Software without restriction, including      *
8 .\" without limitation the rights to use, copy, modify, merge, publish,      *
9 .\" distribute, distribute with modifications, sublicense, and/or sell       *
10 .\" copies of the Software, and to permit persons to whom the Software is    *
11 .\" furnished to do so, subject to the following conditions:                 *
12 .\"                                                                          *
13 .\" The above copyright notice and this permission notice shall be included  *
14 .\" in all copies or substantial portions of the Software.                   *
15 .\"                                                                          *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
23 .\"                                                                          *
24 .\" Except as contained in this notice, the name(s) of the above copyright   *
25 .\" holders shall not be used in advertising or otherwise to promote the     *
26 .\" sale, use or other dealings in this Software without prior written       *
27 .\" authorization.                                                           *
28 .\"***************************************************************************
29 .\"
30 .\" $Id: curs_inch.3x,v 1.11 1998/11/29 01:04:34 Rick.Ohnemus Exp $
31 .\" $DragonFly: src/lib/libncurses/man/curs_inch.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
32 .TH curs_inch 3X ""
33 .SH NAME
34 \fBinch\fR, \fBwinch\fR, \fBmvinch\fR, \fBmvwinch\fR
35 - get a character and attributes from a \fBcurses\fR window
36 .SH SYNOPSIS
37 \fB#include <curses.h>\fR
38
39 \fBchtype inch(void);\fR
40 .br
41 \fBchtype winch(WINDOW *win);\fR
42 .br
43 \fBchtype mvinch(int y, int x);\fR
44 .br
45 \fBchtype mvwinch(WINDOW *win, int y, int x);\fR
46 .br
47 .SH DESCRIPTION
48 These routines return the character, of type \fBchtype\fR, at the current
49 position in the named window.  If any attributes are set for that position,
50 their values are OR'ed into the value returned.  Constants defined in
51 \fB<curses.h>\fR can be used with the \fB&\fR (logical AND) operator to
52 extract the character or attributes alone.
53
54 .SS Attributes
55 The following bit-masks may be AND-ed with characters returned by \fBwinch\fR.
56
57 .TS
58 l l .
59 \fBA_CHARTEXT\fR        Bit-mask to extract character
60 \fBA_ATTRIBUTES\fR      Bit-mask to extract attributes
61 \fBA_COLOR\fR   Bit-mask to extract color-pair field information
62 .TE
63 .SH NOTES
64 Note that all of these routines may be macros.
65 .SH PORTABILITY
66 These functions are described in the XSI Curses standard, Issue 4.
67 .SH SEE ALSO
68 \fBcurses\fR(3X).
69 .\"#
70 .\"# The following sets edit modes for GNU EMACS
71 .\"# Local Variables:
72 .\"# mode:nroff
73 .\"# fill-column:79
74 .\"# End: