Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > A

attr_get(3X)

ENHANCED CURSES
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

attr_get, attr_off, attr_on, attr_set, color_set, wattr_get, wattr_off, wattr_on, wattr_set, wcolor_set — window attribute control functions

SYNOPSIS

#include <curses.h>

int attr_get(attr_t *attrs, short *color, void *opts);

int attr_off(attr_t attrs, void *opts);

int attr_on(attr_t attrs, void *opts);

int attr_set(attr_t attrs, short color, void *opts);

int color_set(short color, void *opts);

int wattr_get(WINDOW *win, attr_t *attrs, short *color, void *opts);

int wattr_off(WINDOW *win, attr_t attrs, void *opts);

int wattr_on(WINDOW *win, attr_t attrs, void *opts);

int wattr_set(WINDOW *win, attr_t attrs, short color, void *opts);

int wcolor_set(WINDOW *win, short color, void *opts);

DESCRIPTION

These functions manipulate the attributes and color of the window rendition of the current or specified window.

The attr_get() and wattr_get() functions obtain the current rendition of a window.

The attr_off() and wattr_off() functions turn off attrs in the current or specified window without affecting any others.

The attr_on() and wattr_on() functions turn on attrs in the current or specified window without affecting any others.

The attr_set() and wattr_set() functions set the window rendition of the current or specified window to attrs and color.

The color_set() and wcolor_set() functions set the window color of the current or specified window to color.

The opts argument is reserved for definition in a future edition of this document. Currently, the application must provide a null pointer as opts.

RETURN VALUE

These functions always return OK.

ERRORS

No errors are defined.

SEE ALSO

attroff(3X), <curses.h>.

CHANGE HISTORY

First released in X/Open Curses, Issue 4.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.