X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fcurs_color.3x;h=64689a29b4eb6c147ac292bcc2fdaa6010baf701;hp=a90a321bc7b6f56832884eaf245a7ce1c5a2b617;hb=0ac2306dd3aaab1338d8b1458c15a7e476cfc3ff;hpb=71c0306f0824ef2b10c4c5813fb003db48f3012e diff --git a/man/curs_color.3x b/man/curs_color.3x index a90a321b..64689a29 100644 --- a/man/curs_color.3x +++ b/man/curs_color.3x @@ -26,8 +26,11 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_color.3x,v 1.30 2010/07/31 16:12:01 tom Exp $ +.\" $Id: curs_color.3x,v 1.32 2010/09/18 20:27:38 tom Exp $ .TH curs_color 3X "" +.de bP +.IP \(bu 4 +.. .na .hy 0 .SH NAME @@ -43,7 +46,7 @@ .hy .SH SYNOPSIS \fB# include \fR -.br +.sp \fBint start_color(void);\fR .br \fBint init_pair(short pair, short f, short b);\fR @@ -93,15 +96,13 @@ The \fBinit_pair\fR routine changes the definition of a color-pair. It takes three arguments: the number of the color-pair to be changed, the foreground color number, and the background color number. For portable applications: -.TP 5 -\- +.bP The value of the first argument must be between \fB1\fR and \fBCOLOR_PAIRS\-1\fR, except that if default colors are used (see \fBuse_default_colors\fP) the upper limit is adjusted to allow for extra pairs which use a default color in foreground and/or background. -.TP 5 -\- +.bP The value of the second and third arguments must be between 0 and \fBCOLORS\fR. Color pair 0 is assumed to be white on black, @@ -185,7 +186,7 @@ An error is returned from all functions if the terminal has not been initialized. An error is returned from secondary functions such as \fBinit_pair\fP if \fBstart_color\fP was not called. -.RS +.RS 3 .TP 5 \fBinit_color\fP returns an error if the terminal does not support @@ -193,8 +194,7 @@ this feature, e.g., if the \fIinitialize_color\fP capability is absent from the terminal description. .TP 5 \fBstart_color\fP -returns an error -If the color table cannot be allocated. +returns an error if the color table cannot be allocated. .RE .SH NOTES In the \fIncurses\fR implementation, there is a separate color activation flag, @@ -209,18 +209,15 @@ the background color used when parts of a window are blanked by erasing or scrolling operations, see \fBcurs_bkgd\fR(3X). .PP Several caveats apply on 386 and 486 machines with VGA-compatible graphics: -.TP 5 -\- +.bP COLOR_YELLOW is actually brown. To get yellow, use COLOR_YELLOW combined with the \fBA_BOLD\fR attribute. -.TP 5 -\- +.bP The A_BLINK attribute should in theory cause the background to go bright. This often fails to work, and even some cards for which it mostly works (such as the Paradise and compatibles) do the wrong thing when you try to set a bright "yellow" background (you get a blinking yellow foreground instead). -.TP 5 -\- +.bP Color RGB values are not settable. .SH PORTABILITY This implementation satisfies XSI Curses's minimum maximums