1 .\" $NetBSD: curses_default_colors.3,v 1.5 2003/04/16 13:35:01 wiz Exp $
2 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
3 .\" All rights reserved.
5 .\" This code is derived from software contributed to The NetBSD Foundation
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 .\" POSSIBILITY OF SUCH DAMAGE.
29 .Dt CURSES_DEFAULT_COLORS 3
32 .Nm curses_default_colors ,
33 .Nm assume_default_colors ,
34 .Nm use_default_colors
35 .Nd curses default colors setting routines
41 .Fn assume_default_colors "short fore" "short back"
43 .Fn use_default_colors ""
45 These functions tell the curses library to set the default colors or to use
46 the terminal's default colors instead of using the default colors for curses
47 applications (which are white foreground on black background).
50 .Fn assume_default_colors fore back
51 sets the default colors to foreground color
55 If a value of \-1 is used for a color, then the terminal default color is used
59 .Fn use_default_colors
60 sets both the foreground and background colors to the terminal default colors.
62 .Fn assume_default_colors \-1 \-1 .
64 These functions return OK on success and ERR on failure.
68 These functions are based on
70 extensions to the curses standards.
72 These functions first appeared in