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 2005 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Copyright (c) 1988 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * University Copyright- Copyright (c) 1982, 1986, 1988 2N/A * The Regents of the University of California 2N/A * All Rights Reserved 2N/A * University Acknowledgment- Portions of this document are derived from 2N/A * software developed by the University of California, Berkeley, and its 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A /* if not a color terminal, return error */ 2N/A /* we have only 6 bits to store color-pair info */ 2N/A /* allocate pairs_tbl */ 2N/A/* the following is not required because we assume that color 0 is */ 2N/A/* always a default background. if this will change, we may want */ 2N/A/* to store the default colors in entry 0 of pairs_tbl. */ 2N/A * cur_term->_pairs_tbl[0].foreground = 0; 2N/A * cur_term->_pairs_tbl[0].background = COLORS; 2N/A /* if terminal can change the definition of the color */ 2N/A /* allocate color_tbl */ 2N/A /* allocate color mark map for cookie terminals */ 2N/A /* initialize color_tbl with the following colors: black, blue, */ 2N/A /* green, cyan, red, magenta, yellow, black. if table has more */ 2N/A /* than 8 entries, use the same 8 colors for the following 8 */ 2N/A /* positions, and then again, and again .... If table has less */ 2N/A /* then 8 entries, use as many colors as will fit in. */ 2N/A /* for Tek terminals set the background color to zero */