]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/dft_fgbg.3x
ncurses 4.2
[ncurses.git] / man / dft_fgbg.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 1998 Free Software Foundation, Inc.                        *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" Author: Thomas E. Dickey <dickey@clark.net> 1997
30 .\"
31 .\" $Id: dft_fgbg.3x,v 1.5 1998/02/11 12:13:48 tom Exp $
32 .TH use_default_colors 3X ""
33 .
34 .SH NAME
35 \fBdft_fgbg\fR \- use terminal's default colors
36 .
37 .SH SYNOPSIS
38 \fB#include <curses.h>\fP
39
40 \fBint use_default_colors(void);\fP
41 .
42 .SH DESCRIPTION
43 This is an extension to the curses library.
44 It is used with terminals that support ISO 6429 color, or equivalent.
45 These terminals allow the application to reset color to an unspecified
46 default value (e.g., with SGR 39 or SGR 49).
47 Because they are designed to support this, their design usually includes
48 features to change the default foreground or background colors so that
49 they do not match the assumption in XSI curses of white on black.
50 .PP
51 Applications that paint a colored background over the whole screen
52 are not adversely impacted by this type of terminal design.
53 However, there are applications that are designed to work with
54 the default background.
55 .
56 .SH RETURN VALUE
57 The function returns the integer \fBERR\fP upon failure and \fBOK\fP on success.
58 It will fail if either the terminal does not support
59 the \fIorig_pair\fP or \fIorig_colors\fP capability.
60 If the \fIinitialize_pair\fP capability is found, this causes an
61 error as well.
62 .
63 .SH NOTES
64 Associated with this extension, the \fBinit_pair\fR(3X) function accepts
65 negative arguments to specify default foreground or background
66 colors.
67 .
68 .SH PORTABILITY
69 These routines are specific to ncurses.  They were not supported on
70 Version 7, BSD or System V implementations.  It is recommended that
71 any code depending on them be conditioned using NCURSES_VERSION.
72 .
73 .SH SEE ALSO
74 \fBcurs_color\fR(3X),
75 \fBded\fP(1).
76 .
77 .SH AUTHOR
78 Thomas Dickey (from an analysis of the requirements for color xterm
79 for XFree86 3.1.2C, February 1996).
80 .\"#
81 .\"# The following sets edit modes for GNU EMACS
82 .\"# Local Variables:
83 .\"# mode:nroff
84 .\"# fill-column:79
85 .\"# End: