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 ADDCHSTR 3XCURSES "Jun 5, 2002"
8 addchstr, addchnstr, mvaddchstr, mvaddchnstr, mvwaddchnstr, mvwaddchstr,
9 waddchstr, waddchnstr \- copy a character string (with renditions) 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 \fBaddchstr\fR(\fBconst chtype *\fR\fIchstr\fR);
25 \fBint\fR \fBaddchnstr\fR(\fBconst chtype *\fR\fIchstr\fR, \fBint\fR \fIn\fR);
30 \fBint\fR \fBmvaddchnstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst chtype *\fR\fIchstr\fR, \fBint\fR \fIn\fR);
35 \fBint\fR \fBmvaddchstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst chtype *\fR\fIchstr\fR);
40 \fBint\fR \fBmvwaddchnstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst chtype *\fR\fIchstr\fR, \fBint\fR \fIn\fR);
45 \fBint\fR \fBmvwaddchstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBconst chtype *\fR\fIchstr\fR);
50 \fBint\fR \fBwaddchstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBconst chtype *\fR\fIchstr\fR);
55 \fBint\fR \fBwaddchnstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBconst chtype *\fR\fIchstr\fR, \fBint\fR \fIn\fR);
61 The \fBaddchstr()\fR function copies the \fBchtype\fR character string to the
62 \fBstdscr\fR window at the current cursor position. The \fBmvaddchstr()\fR and
63 \fBmvwaddchstr()\fR functions copy the character string to the starting
64 position indicated by the \fIx\fR (column) and \fIy\fR (row) parameters (the
65 former to the \fBstdscr\fR window; the latter to window \fIwin\fR). The
66 \fBwaddchstr()\fR is identical to \fBaddchstr()\fR, but writes to the window
67 specified by \fIwin\fR.
70 The \fBaddchnstr()\fR, \fBwaddchnstr()\fR, \fBmvaddchnstr()\fR, and
71 \fBmvwaddchnstr()\fR functions write \fIn\fR characters to the window, or as
72 many as will fit on the line. If \fIn\fR is less than 0, the entire string is
73 written, or as much of it as fits on the line. The former two functions place
74 the string at the current cursor position; the latter two commands use the
75 position specified by the \fIx\fR and \fIy\fR parameters.
78 These functions differ from the \fBaddstr\fR(3XCURSES) set of functions in two
79 important respects. First, these functions do \fInot\fR advance the cursor
80 after writing the string to the window. Second, the current window rendition is
81 not combined with the character; only the attributes that are already part of
82 the \fBchtype\fR character are used.
90 Is a pointer to the \fBchtype\fR string to be copied to the window.
99 Is the maximum number of characters to be copied from \fIchstr\fR. If \fIn\fR
100 is less than 0, the entire string is written or as much of it as fits on the
110 Is the y (row) coordinate of the starting position of \fIchstr\fR in the
120 Is the x (column) coordinate of the starting position of \fIchstr\fR in the
130 Is a pointer to the window to which the string is to be copied.
136 On success, these functions return \fBOK\fR. Otherwise, they return \fBERR\fR.
144 See \fBattributes\fR(5) for descriptions of the following attributes:
152 ATTRIBUTE TYPE ATTRIBUTE VALUE
154 Interface Stability Standard
162 \fBaddch\fR(3XCURSES), \fBaddnstr\fR(3XCURSES), \fBattroff\fR(3XCURSES),
163 \fBlibcurses\fR(3XCURSES), \fBattributes\fR(5), \fBstandards\fR(5)