2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH CURS_GETSTR 3CURSES "Dec 31, 1996"
9 curs_getstr, getstr, wgetstr, mvgetstr, mvwgetstr, wgetnstr \- get character
10 strings from curses terminal keyboard
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lcurses\fR [ \fIlibrary\fR ... ]
17 \fBint\fR \fBgetstr\fR(\fBchar *\fR\fIstr\fR);
22 \fBint\fR \fBwgetstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBchar *\fR\fIstr\fR);
27 \fBint\fR \fBmvgetstr\fR(\fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBchar *\fR\fIstr\fR);
32 \fBint\fR \fBmvwgetstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBint\fR \fIy\fR, \fBint\fR \fIx\fR, \fBchar *\fR\fIstr\fR);
37 \fBint\fR \fBwgetnstr\fR(\fBWINDOW *\fR\fIwin\fR, \fBchar *\fR\fIstr\fR, \fBint\fR \fIn\fR);
43 The effect of \fBgetstr()\fR is as though a series of calls to \fBgetch()\fR
44 were made, until a newline or carriage return is received. The resulting value
45 is placed in the area pointed to by the character pointer \fIstr\fR.
46 \fBwgetnstr()\fR reads at most \fIn\fR characters, thus preventing a possible
47 overflow of the input buffer. The user's erase and kill characters are
48 interpreted, as well as any special keys (such as function keys, HOME key, and
53 All routines return the integer \fBERR\fR upon failure and an integer value
54 other than \fBERR\fR upon successful completion.
58 See \fBattributes\fR(5) for descriptions of the following attributes:
66 ATTRIBUTE TYPE ATTRIBUTE VALUE
74 \fBcurs_getch\fR(3CURSES), \fBcurses\fR(3CURSES), \fBattributes\fR(5)
78 The header <\fBcurses.h\fR> automatically includes the headers <\fBstdio.h\fR>
82 Note that \fBgetstr()\fR, \fBmvgetstr()\fR, and \fBmvwgetstr()\fR may be