1termattrs(3XCURSES)     X/Open Curses Library Functions    termattrs(3XCURSES)
2
3
4

NAME

6       termattrs, term_attrs - get supported terminal video attributes
7

SYNOPSIS

9       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
10        -R  /usr/xpg4/lib  -lcurses  [ library... ]
11
12       c89 [ flag... ] file... -lcurses [ library... ]
13
14       #include <curses.h>
15
16       chtype termattrs(void);
17
18
19       attr_t term_attrs(void);
20
21

DESCRIPTION

23       The  termattrs()  function extracts the video attributes of the current
24       terminal which is supported by the chtype data type.
25
26
27       The term_attrs() function extracts information for the video attributes
28       of the current terminal which is supported for a cchar_t.
29

RETURN VALUES

31       The termattrs() function returns a logical OR of A_ values of all video
32       attributes supported by the terminal.
33
34
35       The term_attrs() function returns a logical OR of  WA_  values  of  all
36       video attributes supported by the terminal.
37

ERRORS

39       No errors are defined.
40

ATTRIBUTES

42       See attributes(5) for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │Interface Stability          │Standard                     │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │MT-Level                     │Unsafe                       │
53       └─────────────────────────────┴─────────────────────────────┘
54

SEE ALSO

56       attr_get(3XCURSES),       attroff(3XCURSES),       libcurses(3XCURSES),
57       attributes(5), standards(5)
58
59
60
61SunOS 5.11                        5 Jun 2002               termattrs(3XCURSES)
Impressum