1curs_addchstr(3CURSES)     Curses Library Functions     curs_addchstr(3CURSES)
2
3
4

NAME

6       curs_addchstr,  addchstr, addchnstr, waddchstr, waddchnstr, mvaddchstr,
7       mvaddchnstr, mvwaddchstr, mvwaddchnstr - add string of  characters  and
8       attributes to a curses window
9

SYNOPSIS

11       cc [ flag ... ] file ... -lcurses [ library ... ]
12       #include <curses.h>
13
14       int addchstr(chtype *chstr);
15
16
17       int addchnstr(chtype *chstr, int n);
18
19
20       int waddchstr(WINDOW *win, chtype *chstr);
21
22
23       int waddchnstr(WINDOW *win, chtype *chstr, int n);
24
25
26       int mvaddchstr(int y, int x, chtype *chstr);
27
28
29       int mvaddchnstr(int y, int x, chtype *chstr, int n);
30
31
32       int mvwaddchstr(WINDOW *win, int y, int x, chtype *chstr);
33
34
35       int mvwaddchnstr(WINDOW *win, int y, int x, chtype *chstr, int n);
36
37

DESCRIPTION

39       All  of these routines copy chstr directly into the window image struc‐
40       ture starting at the current cursor position. The four routines with  n
41       as the last argument copy at most n elements, but no more than will fit
42       on the line. If n=-1 then the whole string is copied,  to  the  maximum
43       number that fit on the line.
44
45
46       The position of the window cursor is not advanced. These routines works
47       faster than waddnstr() (see  curs_addstr(3CURSES)) because they  merely
48       copy  chstr  into  the  window image structure. On the other hand, care
49       must be taken when using these functions because they  do  not  perform
50       any  kind  of checking (such as for the newline character), they do not
51       advance the current cursor position,  and  they  truncate  the  string,
52       rather then wrapping it around to the next line.
53

RETURN VALUES

55       All  routines  return the integer ERR upon failure and an integer value
56       other than ERR upon successful completion.
57

ATTRIBUTES

59       See attributes(5) for descriptions of the following attributes:
60
61
62
63
64       ┌─────────────────────────────┬─────────────────────────────┐
65       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
66       ├─────────────────────────────┼─────────────────────────────┤
67       │MT-Level                     │Unsafe                       │
68       └─────────────────────────────┴─────────────────────────────┘
69

SEE ALSO

71       curs_addstr(3CURSES), curses(3CURSES), attributes(5)
72

NOTES

74       The header <curses.h> automatically includes the headers  <stdio.h> and
75       <unctrl.h>.
76
77
78       Note  that  all  routines  except  waddchnstr()  and waddchstr() may be
79       macros.
80
81
82
83SunOS 5.11                        31 Dec 1996           curs_addchstr(3CURSES)
Impressum