1curs_addwstr(3X)                                              curs_addwstr(3X)
2
3
4

NAME

6       addwstr, addnwstr, waddwstr, waddnwstr, mvaddwstr, mvaddnwstr,
7       mvwaddwstr, mvwaddnwstr - add a string of wide characters to a curses
8       window and advance cursor
9

SYNOPSIS

11       #include <curses.h>
12
13       int addwstr(const wchar_t *wstr);
14       int addnwstr(const wchar_t *wstr, int n);
15       int waddwstr(WINDOW *win, const wchar_t *wstr);
16       int waddnwstr(WINDOW *win, const wchar_t *wstr, int n);
17       int mvaddwstr(int y, int x, const wchar_t *wstr);
18       int mvaddnwstr(int y, int x, const wchar_t *wstr, int n);
19       int mvwaddwstr(WINDOW *win, int y, int x, const wchar_t *wstr);
20       int mvwaddnwstr(WINDOW *win, int y, int x, const wchar_t *wstr, int n);
21

DESCRIPTION

23       These  routines  write  the characters of the (null-terminated) wchar_t
24       character string wstr on the given window.  It is similar to construct‐
25       ing a cchar_t for each wchar_t in the string, then calling wadd_wch for
26       the resulting cchar_t.
27
28       The mv routines perform cursor movement once, before writing any  char‐
29       acters.  Thereafter, the cursor is advanced as a side-effect of writing
30       to the window.
31
32       The four routines with n as the last argument write at most  n  wchar_t
33       characters.   If  n  is -1, then the entire string will be added, up to
34       the maximum number of characters that will fit on the line, or until  a
35       terminating null is reached.
36

RETURN VALUES

38       All routines return the integer ERR upon failure and OK on success.
39

NOTES

41       Note that all of these routines except waddnwstr may be macros.
42

PORTABILITY

44       All  these entry points are described in the XSI Curses standard, Issue
45       4.
46

SEE ALSO

48       curses(3X), curs_add_wch(3X)
49
50
51
52                                                              curs_addwstr(3X)
Impressum