X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fcurs_color.3x;h=c0bc510108c117ccafe53e1bf52ecf44b92f9f13;hp=bbb2e3f03d1270c2762c66ebf61a38317898c663;hb=5c2245b6fc619f8d96ce940281dfbf13b5b8900b;hpb=3eda6f30a84d53844d2ebceadb457e2e7e9cfbf3 diff --git a/man/curs_color.3x b/man/curs_color.3x index bbb2e3f0..c0bc5101 100644 --- a/man/curs_color.3x +++ b/man/curs_color.3x @@ -26,7 +26,7 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_color.3x,v 1.50 2017/04/01 19:57:19 tom Exp $ +.\" $Id: curs_color.3x,v 1.51 2017/08/12 21:40:14 tom Exp $ .TH curs_color 3X "" .ie \n(.g .ds `` \(lq .el .ds `` `` @@ -46,6 +46,7 @@ \fBinit_color\fR, \fBcolor_content\fR, \fBpair_content\fR, +\fBreset_color_pairs\fR, \fBCOLOR_PAIR\fR, \fBPAIR_NUMBER\fR \- \fBcurses\fR color manipulation routines .ad @@ -79,6 +80,10 @@ .br \fBint extended_pair_content(int pair, int *f, int *b);\fR .sp +/* extensions */ +.br +\fBvoid reset_color_pairs(void);\fR +.sp \fBint COLOR_PAIR(int n);\fR .br \fBPAIR_NUMBER(\fR\fIattrs\fR\fB);\fP @@ -274,6 +279,11 @@ As an extension, ncurses allows you to set color pair \fB0\fP via the \fBassume_default_colors\fR(3X) routine, or to specify the use of default colors (color number \fB\-1\fR) if you first invoke the \fBuse_default_colors\fR(3X) routine. +.PP +The extension \fBreset_color_pairs\fP tells ncurses to discard all +of the color-pair information which was set with \fBinit_pair\fP. +It also touches the current- and standard-screens, allowing an application to +switch color palettes rapidly. .SS init_color .PP The \fBinit_color\fR routine changes the definition of a color. @@ -409,6 +419,8 @@ terminfo database, which uses signed 16-bit numbers. This implementation provides extended versions of those functions which use \fBshort\fP parameters, allowing applications to use larger color- and pair-numbers. +.PP +The \fBreset_color_pairs\fP function is an extension of ncurses. .SH SEE ALSO \fBcurses\fR(3X), \fBcurs_initscr\fR(3X),