CURSES_ADDSTR(3) | Library Functions Manual | CURSES_ADDSTR(3) |
int
addstr(const char *string);
int
waddstr(WINDOW *win, const char *string);
int
mvaddstr(int y, int x, const char *string);
int
mvwaddstr(WINDOW *win, int y, int x, const char *string);
int
addnstr(const char *string, int len);
int
waddnstr(WINDOW *win, const char *string, int len);
int
mvaddnstr(int y, int x, const char *string, int len);
int
mvwaddnstr(WINDOW *win, int y, int x, const char *string, int len);
The addstr() function will add the characters passed in string to stdscr starting at the current cursor position. Any background attributes currently set on stdscr will be applied to the added character. The waddstr() function does the same as addstr() but adds the string to the window specified by win().
The addnstr() function will add the contents of string to stdscr but will limit the number of characters added to be, at most, len. If len is -1 then addnstr will add the number of characters contained in the null terminated string string. Any background attributes currently set on stdscr will be applied to the added character. The waddnstr() function does the same as addnstr but adds the string to the window specified by win.
The functions mvaddstr(), mwaddnstr(), mvwaddstr() and mvwaddnstr() are the same as the functions addstr(), waddstr(), waddstr() and waddnstr(), respectively, excepting that wmove() is called to move the cursor to the position specified by y, x before the string is added to the window.
May 21, 2003 | NetBSD 6.1 |