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.
#include <curses.h> int mvgetstr (int y, int x, char *str); int mvwgetstr (WINDOW *win, int y, int x, char *str);
OK | Indicates success. |
ERR | Indicates that the function causes the screen to scroll illegally. |