1 /******************************************************************************
2 * Copyright 1997 by Thomas E. Dickey <dickey@clark.net> *
3 * All Rights Reserved. *
5 * Permission to use, copy, modify, and distribute this software and its *
6 * documentation for any purpose and without fee is hereby granted, provided *
7 * that the above copyright notice appear in all copies and that both that *
8 * copyright notice and this permission notice appear in supporting *
9 * documentation, and that the name of the above listed copyright holder(s) *
10 * not be used in advertising or publicity pertaining to distribution of the *
11 * software without specific, written prior permission. THE ABOVE LISTED *
12 * COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *
13 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO *
14 * EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY *
15 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER *
16 * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF *
17 * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN *
18 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
19 ******************************************************************************/
20 #include <curses.priv.h>
23 MODULE_ID("$Id: lib_dft_fgbg.c,v 1.2 1997/02/02 01:45:36 tom Exp $")
26 * Modify the behavior of color-pair 0 so that the library doesn't assume that
27 * it is black on white. This is an extension to XSI curses.
29 * Invoke this function after 'start_color()'.
32 use_default_colors(void)
34 T((T_CALLED("use_default_colors()")));
39 if (!orig_pair && !orig_colors)
42 if (initialize_pair) /* don't know how to handle this */
45 SP->_default_color = TRUE;
46 SP->_color_pairs[0] = PAIR_OF(C_MASK, C_MASK);