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 INNSTR 3XCURSES "Jun 5, 2002"
8 innstr, instr, mvinnstr, mvinstr, mvwinnstr, mvwinstr, winnstr, winstr \-
9 retrieve a multibyte character string (without rendition)
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 \fBinnstr\fR(\fBchar *\fR\fIstr\fR, \fBint\fR \fIn\fR);
25 \fBint\fR \fBinstr\fR(\fBchar *\fR\fIstr\fR);
30 \fBint\fR \fBmvinnstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBchar *\fR\fIstr\fR, \fBint\fR \fIn\fR);
35 \fBint\fR \fBmvinstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBchar *\fR\fIstr\fR);
40 \fBint\fR \fBmvwinnstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBchar *\fR\fIstr\fR, \fBint\fR \fIn\fR);
45 \fBint\fR \fBmvwinstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBchar *\fR\fIstr\fR);
50 \fBint\fR \fBwinstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBchar *\fR\fIstr\fR);
55 \fBint\fR \fBwinnstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBchar *\fR\fIstr\fR, \fBint\fR \fIn\fR);
65 Is a pointer to an object that can hold the retrieved multibyte character
75 Is the number of characters not to exceed when retrieving \fIstr\fR.
84 Is the y (row) coordinate of the starting position of the string to be
94 Is the x (column) coordinate of the starting position of the string to be
104 Is a pointer to the window in which the string is to be retrieved.
110 The \fBinstr()\fR and \fBwinstr()\fR functions retrieve a multibyte character
111 string (without attributes) starting at the current cursor position of the
112 \fBstdscr\fR window and window \fIwin\fR, respectively, and ending at the right
113 margin. The \fBmvinstr()\fR and \fBmvwinstr()\fR functions retrieve a multibyte
114 character string located at the position indicated by the \fIx\fR (column) and
115 \fIy\fR (row) parameters (the former in the \fBstdscr\fR window; the latter in
119 The \fBinnstr()\fR, \fBwinnstr()\fR, \fBmvinnstr()\fR, and \fBmvwinnstr()\fR
120 functions retrieve at most \fIn\fR characters from the window \fBstdscr\fR and
121 \fIwin\fR, respectively. The former two functions retrieve the string starting
122 at the current cursor position; the latter two commands return the string,
123 starting at the position specified by the \fIx\fR and \fIy\fR parameters.
126 All these functions store the retrieved string in the object pointed to by
127 \fIstr\fR. They only store complete multibyte characters. If the area pointed
128 to by \fIstr\fR is not large enough to hold at least one character, these
132 Only the character portion of the character/rendition pair is returned. To
133 return the complete character/rendition pair, use \fBwinchstr()\fR.
141 Successful completion.
156 All functions except \fBwinnstr()\fR may be macros.
160 See \fBattributes\fR(5) for descriptions of the following attributes:
168 ATTRIBUTE TYPE ATTRIBUTE VALUE
170 Interface Stability Standard
178 \fBinch\fR(3XCURSES), \fBinchstr\fR(3XCURSES), \fBlibcurses\fR(3XCURSES),
179 \fBattributes\fR(5), \fBstandards\fR(5)