mv[w]getstr

Move the cursor to coordinates (y,x), get a string from the terminal screen, store it in the variable str which must be large enough to contain the string, and echo it on the specified window. The mvgetstr function acts on the stdscr window.

Format

#include  <curses.h>

int mvgetstr  (int y, int x, char *str);

int mvwgetstr  (WINDOW *win, int y, int
               x, char *str);

Arguments

win
A pointer to the window.
y
A window coordinate.
x
A window coordinate.
str
The string that is displayed.

Description

The mvgetstr and mvwgetstr functions strip the new-line terminator (\n) from the string.

Return Values
OK  Indicates success. 
ERR  Indicates that the function causes the screen to scroll illegally. 


Previous Page | Next Page | Table of Contents | Index