1curs_addwchstr(3CURSES) Curses Library Functions curs_addwchstr(3CURSES)
2
3
4
6 curs_addwchstr, addwchstr, addwchnstr, waddwchstr, waddwchnstr, mvad‐
7 dwchstr, mvaddwchnstr, mvwaddwchstr, mvwaddwchnstr - add string of
8 wchar_t characters (and attributes) to a curses window
9
11 cc [flag]... file... -lcurses [library]...
12
13
14 #include<curses.h>
15
16 int addwchstr(chtype *wchstr);
17
18
19 int addwchnstr(chtype *wchstr, int n);
20
21
22 int waddwchstr(WINDOW *win, chtype *wchstr);
23
24
25 int waddwchnstr(WINDOW *win, chtype *wchstr, int n);
26
27
28 int mvaddwchstr(int y, int x, chtype *wchstr);
29
30
31 int mvaddwchnstr(int y, int x, chtype *wchstr, int n);
32
33
34 int mvwaddwchstr(WINDOW *win, int y, int x, chtype *wchstr);
35
36
37 int mvwaddwchnstr(WINDOW *win, int y, int x , chtype *wchstr, int n);
38
39
41 All of these routines copy wchstr, which points to a string of wchar_t
42 characters, directly into the window image structure starting at the
43 current cursor position. The four routines with n as the last argument
44 copy at most n elements, but no more than will fit on the line. If n=−1
45 then the whole string is copied, to the maximum number that fit on the
46 line.
47
48
49 The position of the window cursor is not advanced. These routines work
50 faster than waddnwstr(3CURSES) because they merely copy wchstr into
51 the window image structure. On the other hand, care must be taken when
52 using these functions because they don't perform any kind of checking
53 (such as for the newline character), they do not advance the current
54 cursor position, and they truncate the string, rather than wrapping it
55 around to the new line.
56
58 All routines return the integer ERR upon failure and an integer value
59 other than ERR upon successful completion, unless otherwise noted in
60 the preceding routine descriptions.
61
63 See attributes(5) for descriptions of the following attributes:
64
65
66
67
68 ┌─────────────────────────────┬─────────────────────────────┐
69 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
70 ├─────────────────────────────┼─────────────────────────────┤
71 │MT-Level │Unsafe │
72 └─────────────────────────────┴─────────────────────────────┘
73
75 curses(3CURSES), waddnwstr(3CURSES), attributes(5)
76
78 The header file <curses.h> automatically includes the header files
79 <stdio.h>, <unctrl.h> and <widec.h>.
80
81
82 Note that all routines except waddwchnstr() may be macros.
83
84
85 None of these routines can use the color attribute in chtype.
86
87
88
89SunOS 5.11 31 Dec 1996 curs_addwchstr(3CURSES)