2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1995, by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Copyright 1990, 1995 by Mortice Kern Systems Inc. All rights reserved. 2N/A * Return true if attribute X a member of the attribute set A. 2N/A * no_color_video is the set of attributes that cannot be combined 2N/A * Set the desired attribute state for a terminal screen. 2N/A * Using set_attributes is the prefered method but requires some care 2N/A * in writing the proper terminfo string. Using exit_attribute_mode and 2N/A * the assorted enter_ attribute mode capabilities is the next best method. 2N/A * Finally using the assorted exit_ and enter_ attribute mode capabilities 2N/A * is the last method available and is not necessarily efficent (or smart 2N/A * because of the needs of ceol_standout_glitch support). 2N/A /* Assume that <set_attributes> disables attributes 2N/A * then re-enables attributes that are to be on. 2N/A /* Only use <set_a_attributes> when <set_attributes> 2N/A * is defined. <set_a_attributes> should not disable 2N/A * attributes, as this will have been handled by 2N/A /* Turn off only those attributes that are on. */ 2N/A /* Turn on attributes regardless if they are already 2N/A * on, because terminals with ceol_standout_glitch, like 2N/A * HP terminals, will have to re-enforce the current 2N/A * attributes in order to change existing attribute 2N/A * cookies on the screen. 2N/A /* A_NORMAL equals 0, which is all attributes off and 2N/A * COLOR_PAIR(0). This implies that colour pair 0 is 2N/A 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L
2N/A 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L
2N/A 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L
2N/A 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L
2N/A 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L
2N/A /* Remember the current attribute state for the terminal. */