2 .\" Copyright (c) 1990, 1995 by Mortice Kern Systems Inc. All Rights Reserved Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ATTR_GET 3XCURSES "Jun 5, 2002"
8 attr_get, attr_off, attr_on, attr_set, color_set, wattr_get, wattr_off,
9 wattr_on, wattr_set, wcolor_set \- control window attributes
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-I\fR /usr/xpg4/include \fB -L \fR /usr/xpg4/lib \e
14 \fB -R \fR /usr/xpg4/lib \fB -lcurses \fR [ \fIlibrary\fR... ]
16 \fBc89\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lcurses\fR [ \fIlibrary\fR... ]
20 \fBint\fR \fBattr_get\fR(\fBattr_t *\fR\fIattrs\fR, \fBshort *\fR\fIcolor\fR, \fBvoid *\fR\fIopts\fR);
25 \fBint\fR \fBattr_off\fR(\fBattr_t\fR \fIattrs\fR, \fBvoid *\fR\fIopts\fR);
30 \fBint\fR \fBattr_on\fR(\fBattr_t\fR \fIattrs\fR, \fBvoid *\fR\fIopts\fR);
35 \fBint\fR \fBattr_set\fR(\fBattr_t\fR \fIattrs\fR, \fBshort\fR \fIcolor\fR, \fBvoid *\fR\fIopts\fR);
40 \fBint\fR \fBcolor_set\fR(\fBshort *\fR\fIcolor\fR, \fBvoid *\fR\fIopts\fR);
45 \fBint\fR \fBwattr_get\fR(\fBWINDOW *\fR\fIwin\fR, \fBattr_t\fR \fIattrs\fR, \fBshort *\fR\fIcolor\fR, \fBvoid *\fR\fIopts\fR);
50 \fBint\fR \fBwattr_off\fR(\fBWINDOW *\fR\fIwin\fR, \fBattr_t\fR \fIattrs\fR, \fBvoid *\fR\fIopts\fR);
55 \fBint\fR \fBwattr_on\fR(\fBWINDOW *\fR\fIwin\fR, \fBattr_t\fR \fIattrs\fR, \fBvoid *\fR\fIopts\fR);
60 \fBint\fR \fBwattr_set\fR(\fBWINDOW *\fR\fIwin\fR, \fBattr_t\fR \fIattrs\fR, \fBshort\fR \fIcolor\fR, \fBvoid *\fR\fIopts\fR);
65 \fBint\fR \fBwcolor_set\fR(\fBWINDOW *\fR\fIwin\fR, \fBshort\fR \fIcolor\fR, \fBvoid *\fR\fIopts\fR);
71 The \fBattr_get()\fR function retrieves the current rendition of \fIstdscr\fR.
72 The \fBwattr_get()\fR function retrieves the current rendition of window
73 \fIwin\fR. If \fIattrs\fR or \fIcolor\fR is a null pointer, no information is
77 The \fBattr_off()\fR and \fBattr_on()\fR functions unset and set,
78 respectively, the specified window attributes of \fBstdscr\fR. These functions
79 only affect the attributes specified; attributes that existed before the call
83 The \fBwattr_off()\fR and \fBwattr_on()\fR functions unset or set the
84 specified attributes for window \fIwin\fR.
87 The \fBattr_set()\fR and \fBwattr_set()\fR functions change the rendition of
88 \fBstdscr\fR and \fIwin\fR; the old values are not retained.
91 The \fBcolor_set()\fR and \fBwcolor_set()\fR functions set the window color of
92 \fBstdscr\fR and \fIwin\fR to \fIcolor\fR.
95 The attributes and color pairs that can be used are specified in the
96 \fBAttributes, Color Pairs, and Renditions\fR section of the
97 \fBcurses\fR(3XCURSES) man page.
105 Is a pointer to the foreground window attributes to be set or unset.
114 Is a pointer to a color pair number .
123 Is reserved for future use.
132 Is a pointer to the window in which attribute changes are to be made.
138 These functions always return \fBOK\fR.
146 See \fBattributes\fR(5) for descriptions of the following attributes:
154 ATTRIBUTE TYPE ATTRIBUTE VALUE
156 Interface Stability Standard
164 \fBadd_wch\fR(3XCURSES), \fBaddnwstr\fR(3XCURSES), \fBattroff\fR(3XCURSES),
165 \fBbkgrndset\fR(3XCURSES), \fBcurses\fR(3XCURSES), \fBinit_color\fR(3XCURSES),
166 \fBlibcurses\fR(3XCURSES), \fBstart_color\fR(3XCURSES), \fBattributes\fR(5),