VMS Help  —  CRTL  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);

1  –  Arguments

 win

    A pointer to the window.

 y

    A window coordinate.

 x

    A window coordinate.

 str

    The string that is displayed.

2  –  Description

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

3  –  Return Values

    OK                 Indicates success.
    ERR                Indicates that the function causes the screen
                       to scroll illegally.
Close Help