1curs_inwch(3CURSES) Curses Library Functions curs_inwch(3CURSES)
2
3
4
6 curs_inwch, inwch, winwch, mvinwch, mvwinwch - get a wchar_t character
7 and its attributes from a curses window
8
10 cc [ flag ... ] file ... -lcurses [ library .. ]
11 #include <curses.h>
12
13 chtype inwch(void);
14
15
16 chtype winwch(WINDOW *win);
17
18
19 chtype mvinwch(int y, int x);
20
21
22 chtype mvwinwch(WINDOW *win, int y, int x);
23
24
26 These routines return the wchar_t character, of type chtype, at the
27 current position in the named window. If any attributes are set for
28 that position, their values are OR-ed into the value returned. Con‐
29 stants defined in <curses.h> can be used with the logical AND (&)
30 operator to extract the character or attributes alone.
31
32 Attributes
33 The following bit-masks may be AND-ed with characters returned by win‐
34 wch().
35
36 A_WCHARTEXT Bit-mask to extract character
37 A_WATTRIBUTES Bit-mask to extract attributes
38
39
41 See attributes(5) for descriptions of the following attributes:
42
43
44
45
46 ┌─────────────────────────────┬─────────────────────────────┐
47 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
48 ├─────────────────────────────┼─────────────────────────────┤
49 │MT-Level │Unsafe │
50 └─────────────────────────────┴─────────────────────────────┘
51
53 curses(3CURSES), attributes(5)
54
56 The header file <curses.h> automatically includes the header files
57 <stdio.h>, <unctrl.h> and <widec.h>.
58
59
60 Note that all of these routines may be macros.
61
62
63 None of these routines can use the color attribute in chtype.
64
65
66
67SunOS 5.11 31 Dec 1996 curs_inwch(3CURSES)