termattrs(3curses)


termattrs -- get supported terminal video attributes

Synopsis

cc [options] file -lcurses
#include <curses.h>

chtype termattrs(void);

attr_t term_attrs(void);

Description

The termattrs(3curses) function extracts the video attributes of the current terminal which is supported by the chtype data type.

The term_attrs(3curses) function extracts information for the video attributes of the current terminal which is supported for a cchar_t

Return value

The termattrs(3curses) function returns a logical OR of A_ values of all video attributes supported by the terminal.

The term_attrs(3curses) function returns a logical OR of WA_ values of all video attributes supported by the terminal.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

Attributes in attroff(3curses), attr_get(3curses), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004