]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_in_wchstr.3x
ncurses 5.4
[ncurses.git] / man / curs_in_wchstr.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 2002 Free Software Foundation, Inc.                        *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_in_wchstr.3x,v 1.2 2002/05/18 21:48:30 tom Exp $
30 .TH curs_in_wchstr 3X ""
31 .SH NAME
32 \fBin_wchstr\fR,
33 \fBin_wchnstr\fR,
34 \fBwin_wchstr\fR,
35 \fBwin_wchnstr\fR,
36 \fBmvin_wchstr\fR,
37 \fBmvin_wchnstr\fR,
38 \fBmvwin_wchstr\fR,
39 \fBmvwin_wchnstr\fR \- get an array of complex characters and renditions from a curses window
40 .SH SYNOPSIS
41 .nf
42 \fB#include <curses.h>\fR
43
44 \fBint in_wchstr(cchar_t *\fR\fIwchstr\fR\fB);\fR
45 .br
46 \fBint in_wchnstr(cchar_t *\fR\fIwchstr\fR\fB, int \fR\fIn\fR\fB);\fR
47 .br
48 \fBint win_wchstr(WINDOW *\fR\fIwin\fR\fB, cchar_t *\fR\fIwchstr\fR\fB);\fR
49 .br
50 \fBint win_wchnstr(WINDOW *\fR\fIwin\fR\fB, cchar_t *\fR\fIwchstr\fR\fB, int \fR\fIn\fR\fB);\fR
51 .br
52 \fBint mvin_wchstr(int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, cchar_t *\fR\fIwchstr\fR\fB);\fR
53 .br
54 \fBint mvin_wchnstr(int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, cchar_t *\fR\fIwchstr\fR\fB, int \fR\fIn\fR\fB);\fR
55 .br
56 \fBint mvwin_wchstr(WINDOW *\fR\fIwin\fR\fB, int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, cchar_t *\fR\fIwchstr\fR\fB);\fR
57 .br
58 \fBint mvwin_wchnstr(WINDOW *\fR\fIwin\fR\fB, int \fR\fIy\fR\fB, int \fR\fIx\fR\fB, cchar_t *\fR\fIwchstr\fR, int \fIn\fR\fB);\fR
59 .fi
60 .SH DESCRIPTION
61 These functions return an array of complex characters in \fIwchstr\fR,
62 starting at the current cursor position in the named window.
63 Attributes (rendition) are stored with the characters.
64 .PP
65 The
66 \fBin_wchnstr\fR,
67 \fBmvin_wchnstr\fR,
68 \fBmvwin_wchnstr\fR
69 and
70 \fBwin_wchnstr\fR
71 fill the array
72 with at most
73 \fIn\fR
74 \fBcchar_t\fR
75 elements.
76 .br
77 .SH NOTES
78 Note that all routines except
79 \fBwin_wchnstr\fR
80 may be
81 macros.
82 .PP
83 Reading a line that overflows the array pointed to by
84 \fIwchstr\fR
85 with
86 \fBin_wchstr\fR,
87 \fBmvin_wchstr\fR,
88 \fBmvwin_wchstr\fR
89 or
90 \fBwin_wchstr\fR
91 causes undefined results. Therefore, the use of
92 \fBin_wchnstr\fR,
93 \fBmvin_wchnstr\fR,
94 \fBmvwin_wchnstr\fR, or
95 \fBwin_wchnstr\fR
96 is recommended.
97 .SH RETURN VALUES
98 Upon successful completion, these functions return
99 \fBOK\fR.
100 Otherwise, they return
101 \fBERR\fR.
102 .SH PORTABILITY
103 The XSI Curses defines no error conditions.
104 This implementation checks for null pointers,
105 returning ERR in that case.
106 .SH SEE ALSO
107 Functions:
108 \fBcurses\fR(3X),
109 \fBcurs_in_wch\fR(3X)
110 \fBcurs_instr\fR(3X),
111 \fBcurs_inwstr\fR(3X)
112 .\"#
113 .\"# The following sets edit modes for GNU EMACS
114 .\"# Local Variables:
115 .\"# mode:nroff
116 .\"# fill-column:79
117 .\"# End: