mv[w]addstr

Move the cursor to coordinates (y,x) and add the specified string, to which str points, to the specified window.

Format

#include  <curses.h>

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

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

Arguments

win
A pointer to the window.
y
A window coordinate.
x
A window coordinate.
str
A pointer to the character string.

Description

This routine performs the same function as mvwaddstr, but on the stdscr window.

When mvwaddstr is used on a subwindow, the string is written onto the underlying window as well.

Return Values
OK  Indicates success. 
ERR  Indicates that the function causes the screen to scroll illegally, but it places as much of the string onto the window as possible. For more information, see the scrollok function in this section. 


Previous Page | Next Page | Table of Contents | Index