H25176 s 00072/00000/00000 d D 1.1 02/05/02 15:35:04 root 2 1 cC cF1 cK59391 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/05/02 15:35:04 root 1 0 c BitKeeper file /Mastodon/Core/Build/ncurses/Ada95/html/dft_fgbg.3x.html cBor@egypt.pell.portland.or.us|ChangeSet|20020502223039|07086|e73225ae258b78f8 cHegypt.pell.portland.or.us cK26245 cPAda95/html/dft_fgbg.3x.html cR37980afc7f4e79ec cV4 cX0x821 cZ-07:00 e u U f e 0 f x 0x821 t T I 2
use_default_colors - use terminal's default colors
#include <curses.h> int use_default_colors(void);
This is an extension to the curses library. It is used with terminals that support ISO 6429 color, or equivalent. These terminals allow the application to reset color to an unspecified default value (e.g., with SGR 39 or SGR 49). Because they are designed to support this, their design usually includes features to change the default foreground or background colors so that they do not match the assump- tion in XSI curses of white on black. Applications that paint a colored background over the whole screen are not adversely impacted by this type of terminal design. However, there are applications that are designed to work with the default background.
The function returns the integer ERR upon failure and OK on success. It will fail if either the terminal does not support the orig_pair or orig_colors capability. If the initialize_pair capability is found, this causes an error as well.
Associated with this extension, the init_pair(3x) function accepts negative arguments to specify default foreground or background colors.
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on them be con- ditioned using NCURSES_VERSION.
curs_color(3x), ded(1).
Thomas Dickey (from an analysis of the requirements for color xterm for XFree86 3.1.2C, February 1996).E 2 I 1 E 1