2 .\" Copyright (c) 1990, 1995 by Mortice Kern Systems Inc. All Rights Reserved Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ADDNWSTR 3XCURSES "Jun 5, 2002"
8 addnwstr, addwstr, mvaddnwstr, mvaddwstr, mvwaddnwstr, mvwaddwstr, waddnwstr,
9 waddwstr \- add a wide-character string to a window
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-I\fR /usr/xpg4/include \fB -L \fR /usr/xpg4/lib \e
14 \fB -R \fR /usr/xpg4/lib \fB -lcurses \fR [ \fIlibrary\fR... ]
16 \fBc89\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lcurses\fR [ \fIlibrary\fR ... ]
20 \fBint\fR \fBaddnwstr\fR(\fBconst wchar_t *\fR\fIwstr\fR, \fBint\fR \fIn\fR);
25 \fBint\fR \fBaddwstr\fR(\fBconst wchar_t *\fR\fIwstr\fR);
30 \fBint\fR \fBmvaddnwstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst wchar_t *\fR\fIwstr\fR, \fBint\fR \fIn\fR);
35 \fBint\fR \fBmvaddwstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst wchar_t *\fR\fIwstr\fR);
40 \fBint\fR \fBmvwaddnwstr\fR(\fBWINDOW*\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst wchar_t *\fR\fIwstr\fR, \fBint\fR \fIn\fR);
45 \fBint\fR \fBmvwaddwstr\fR(\fBWINDOW*\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst wchar_t *\fR\fIwstr\fR);
50 \fBint\fR \fBwaddnwstr\fR(\fBWINDOW*\fR\fIwin\fR, \fBconst wchar_t *\fR\fIwstr\fR, \fBint\fR \fIn\fR);
55 \fBint\fR \fBwaddwstr\fR(\fBWINDOW*\fR\fIwin\fR, \fBconst wchar_t *\fR\fIwstr\fR);
61 The \fBaddwstr()\fR function writes a null-terminated wide-character string to
62 the \fBstdscr\fR window at the current cursor position. The \fBwaddwstr()\fR
63 function performs an identical action, but writes the string to the window
64 specified by \fIwin\fR. The \fBmvaddwstr()\fR and \fBmvwaddwstr()\fR functions
65 write the string to the position indicated by the \fIx\fR (column) and \fIy\fR
66 (row) parameters (the former to the \fBstdscr\fR window; the latter to window
70 The \fBaddnwstr()\fR, \fBwaddnwstr()\fR, \fBmvaddnwstr()\fR, and
71 \fBmvwaddnwstr()\fR functions write at most \fIn\fR characters to the window.
72 If \fIn\fR is less than 0, the entire string is written. The former two
73 functions place the characters at the current cursor position; the latter two
74 commands use the position specified by the \fIx\fR and \fIy\fR parameters.
77 All of these functions advance the cursor after writing the string.
80 These functions are functionally equivalent to building a \fBcchar_t\fR from
81 the \fBwchar_t\fR and the window rendition (or background character and
82 rendition) and calling the \fBwadd_wch\fR(3XCURSES) function once for each
83 \fBwchar_t\fR in the string. Refer to the \fBcurses\fR(3XCURSES) man page for
84 a complete description of special character handling and of the interaction
85 between the window rendition (or background character and rendition) and the
89 Note that these functions differ from the \fBadd_wchnstr\fR(3XCURSES) set of
90 functions in that the latter copy the string as is (without combining each
91 character with the foreground and background attributes of the window).
99 Is a pointer to the wide-character string that is to be written to the window.
108 Is the maximum number of characters to be copied from \fIwstr\fR. If \fIn\fR is
109 less than 0, the entire string is written or as much of it as fits on the line.
118 Is the y (row) coordinate of the starting position of \fIwstr\fR in the window.
127 Is the x (column) coordinate of the starting position of \fIwstr\fR in the
137 Is a pointer to the window in which the string is to be written.
143 On success, these functions return \fBOK\fR. Otherwise, they return \fBERR\fR.
151 See \fBattributes\fR(5) for descriptions of the following attributes:
159 ATTRIBUTE TYPE ATTRIBUTE VALUE
161 Interface Stability Standard
169 \fBadd_wch\fR(3XCURSES), \fBadd_wchnstr\fR(3XCURSES), \fBcurses\fR(3XCURSES),
170 \fBlibcurses\fR(3XCURSES), \fBattributes\fR(5), \fBstandards\fR(5)