-<!-- Manpage converted by man2html 3.0.1 -->
-
-</PRE>
-<H2>NAME</H2><PRE>
- <B>getstr</B>, <B>getnstr</B>, <B>wgetstr</B>, <B>wgetnstr</B>, <B>mvgetstr</B>, <B>mvgetnstr</B>,
- <B>mvwgetstr</B>, <B>mvwgetnstr</B> - accept character strings from
- <B>curses</B> terminal keyboard
-
-
-</PRE>
-<H2>SYNOPSIS</H2><PRE>
- <B>#include</B> <B><curses.h></B>
-
- <B>int</B> <B>getstr(char</B> <B>*str);</B>
- <B>int</B> <B>getnstr(char</B> <B>*str,</B> <B>int</B> <B>n);</B>
- <B>int</B> <B>wgetstr(WINDOW</B> <B>*win,</B> <B>char</B> <B>*str);</B>
- <B>int</B> <B>wgetnstr(WINDOW</B> <B>*win,</B> <B>char</B> <B>*str,</B> <B>int</B> <B>n);</B>
- <B>int</B> <B>mvgetstr(int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>char</B> <B>*str);</B>
- <B>int</B> <B>mvwgetstr(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>char</B> <B>*str);</B>
- <B>int</B> <B>mvgetnstr(int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>char</B> <B>*str,</B> <B>int</B> <B>n);</B>
- <B>int</B> <B>mvwgetnstr(WINDOW</B> <B>*,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>char</B> <B>*str,</B> <B>int</B> <B>n);</B>
-
-
-</PRE>
-<H2>DESCRIPTION</H2><PRE>
- The function <B>getstr</B> is equivalent to a series of calls to
- <B>getch</B>, until a newline or carriage return is received (the
- terminating character is not included in the returned
- string). The resulting value is placed in the area
- pointed to by the character pointer <I>str</I>.
-
- <B>wgetnstr</B> reads at most <I>n</I> characters, thus preventing a
- possible overflow of the input buffer. Any attempt to
- enter more characters (other than the terminating newline
- or carriage return) causes a beep. Function keys also
- cause a beep and are ignored. The <B>getnstr</B> function reads
- from the <I>stdscr</I> default window.
-
- The user's erase and kill characters are interpreted. If
- keypad mode is on for the window, <B>KEY_LEFT</B> and
- <B>KEY_BACKSPACE</B> are both considered equivalent to the user's
- kill character.
-
- Characters input are echoed only if <B>echo</B> is currently on.
- In that case, backspace is echoed as deletion of the pre-
- vious character (typically a left motion).