1curs_in_wchstr(3X)                                          curs_in_wchstr(3X)
2
3
4

NAME

6       in_wchstr, in_wchnstr, win_wchstr, win_wchnstr, mvin_wchstr,
7       mvin_wchnstr, mvwin_wchstr, mvwin_wchnstr - get an array of complex
8       characters and renditions from a curses window
9

SYNOPSIS

11       #include <curses.h>
12
13       int in_wchstr(cchar_t *wchstr);
14       int in_wchnstr(cchar_t *wchstr, int n);
15       int win_wchstr(WINDOW *win, cchar_t *wchstr);
16       int win_wchnstr(WINDOW *win, cchar_t *wchstr, int n);
17
18       int mvin_wchstr(int y, int x, cchar_t *wchstr);
19       int mvin_wchnstr(int y, int x, cchar_t *wchstr, int n);
20       int mvwin_wchstr(WINDOW *win, int y, int x, cchar_t *wchstr);
21       int mvwin_wchnstr(WINDOW *win, int y, int x, cchar_t *wchstr, int n);
22

DESCRIPTION

24       These functions return an array of complex characters in wchstr, start‐
25       ing at the current cursor position in  the  named  window.   Attributes
26       (rendition) are stored with the characters.
27
28       The  in_wchnstr,  mvin_wchnstr,  mvwin_wchnstr and win_wchnstr fill the
29       array with at most n cchar_t elements.
30

NOTES

32       Note that all routines except win_wchnstr may be macros.
33
34       Reading a line that overflows the  array  pointed  to  by  wchstr  with
35       in_wchstr, mvin_wchstr, mvwin_wchstr or win_wchstr causes undefined re‐
36       sults.  Therefore, the use of in_wchnstr, mvin_wchnstr,  mvwin_wchnstr,
37       or win_wchnstr is recommended.
38

RETURN VALUE

40       Upon successful completion, these functions return OK.  Otherwise, they
41       return ERR.
42
43       Functions with a “mv” prefix first  perform  a  cursor  movement  using
44       wmove, and return an error if the position is outside the window, or if
45       the window pointer is null.
46

PORTABILITY

48       The XSI Curses defines no error conditions.  This implementation checks
49       for null pointers, returning ERR in that case.
50

SEE ALSO

52       Functions: curses(3X), curs_in_wch(3X), curs_instr(3X), curs_inwstr(3X)
53       curs_inchstr(3X)
54
55
56
57                                                            curs_in_wchstr(3X)
Impressum