*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: curs_attr_get | Section: 3 | Source: Digital UNIX | File: curs_attr_get.3.gz
curs_attr_get(3) Library Functions Manual curs_attr_get(3) NAME curs_attr_get, attr_get, wattr_get, attr_off, wattr_off, attr_on, wattr_on, attr_set, wattr_set, color_set, wcolor_set - Functions that control Curses window attributes LIBRARY Curses Library (libcurses.a, libcurses.so) SYNOPSIS #include <curses.h> int attr_get(attr_t *attrs, short *color_pair, void *opts); int wattr_get(WINDOW *win, attr_t *attrs, short *color_pair, void *opts); int attr_off(attr_t attrs, void *opts); int wattr_off(WINDOW *win, attr_t attrs, void *opts); int attr_on(attr_t attrs, void *opts); int wattr_on(WINDOW *win, attr_t attrs, void *opts); int attr_set(attr_t attrs, short color_pair, void *opts); int wattr_set(WINDOW *win, attr_t attrs, short color_pair, void *opts); int color_set(short color_pair, void *opts); int wcolor_set(WINDOW *win, short color_pair, void *opts); STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: attr_get, wattr_get, attr_off, wattr_off, attr_on, wattr_on, attr_set, wattr_set: XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. DESCRIPTION These functions manipulate the attributes and color of the window ren- dition of the current or specified window. The current attributes of a window are applied to all characters that are written into the window. These attributes become property of the character and move with the character through any scrolling and insert/delete line/character opera- tions. To the extent possible on the particular terminal, attributes are displayed as the graphic rendition of characters put on the screen. The attr_get and wattr_get functions obtain the window rendition of the current or specified window. If attrs or color_pair is a null pointer, the functions do not obtain corresponding rendition information; this condition is not an error. The attr_off and wattr_off functions turn off the named attributes, without affecting other attributes, for the current or specified win- dow. The attr_on and wattr_on functions turn on the named attributes, with- out affecting other attributes, for the current or specified window. The attr_set and wattr_set functions set the window rendition of the current or specified window in conjunction with the window background rendition. The color_set and wcolor_set functions set the window color of the cur- rent or specified window to color_pair. The opts argument in all the preceding functions is reserved for future use. Currently, applications must provide a null pointer for the opts argument. Attributes Applications can pass the following video attributes, which are defined in curses.h, to these routines in place of attrs to turn on or off the corresponding attribute. More than one attribute can be passed by using an inclusive OR operation. Alternate character set Blinking Extra bright or bold Half bright Horizontal highlight Invisible Left high- light Low highlight Protected Reverse video Right highlight Best high- lighting mode of the terminal. Top highlight Underlining Vertical highlight NOTES The header file curses.h automatically includes the header file stdio.h. Note that attr_get, attr_off, attr_on, attr_set, and color_set may be macros. RETURN VALUES These routines always return OK. RELATED INFORMATION Functions: curses(3), curs_addch(3), curs_add_wch(3), curs_addwstr(3), curs_printw(3), curs_color(3) Others: standards(5) delim off curs_attr_get(3)

Navigation Options