The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

termattrs - get supported terminal video attributes

 SYNOPSIS



#include <curses.h>

chtype termattrs(void);

attr_t term_attrs(void);

 DESCRIPTION

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

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

 RETURN VALUE

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

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

 ERRORS

No errors are defined.

 SEE ALSO

Attributes in attroff(), attr_get() and <curses.h.>

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]