|
|
#include <curses.h>int addnstr(const char *str, int n);
int addstr(const char *str);
int mvaddnstr(int y, int x, const char *str, int n);
int mvaddstr(int y, int x, const char *str);
int mvwaddnstr(WINDOW *win, int y, int x, const char *str, int n);
int mvwaddstr(WINDOW *win, int y, int x, const char *str);
int waddnstr(WINDOW *win, const char *str, int n);
int waddstr(WINDOW *win, const char *str);
These functions advance the cursor position. These functions perform special character processing. These functions perform wrapping.
The addstr(3curses), mvaddstr(3curses), mvwaddstr(3curses) and waddstr(3curses) functions are similar to calling mbstowcs(3C) on str, and then calling addwstr(3curses), mvaddwstr(3curses), mvwaddwstr(3curses) and waddwstr(3curses), respectively.
The addnstr(3curses), mvaddnstr(3curses), mvwaddnstr(3curses) and waddnstr(3curses) functions use at most n bytes from str. These functions add the entire string when n is -1. These functions are similar to calling mbstowcs(3C) on the first n bytes of str, and then calling addwstr(3curses), mvaddwstr(3curses), mvwaddwstr(3curses) and waddwstr(3curses), respectively.