bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

curs_color.3x diff


From: Tim van der Molen
Subject: curs_color.3x diff
Date: Mon, 10 Nov 2014 23:45:14 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

curs_color.3x incorrectly states that the maximal color value is COLORS
(it is stated correctly in the RETURN VALUES section).

Regards,
Tim

diff -pru ncurses-5.9-20141101.orig/man/curs_color.3x 
ncurses-5.9-20141101/man/curs_color.3x
--- ncurses-5.9-20141101.orig/man/curs_color.3x Mon Dec 20 01:50:58 2010
+++ ncurses-5.9-20141101/man/curs_color.3x      Mon Nov 10 23:16:19 2014
@@ -104,7 +104,7 @@ the upper limit is adjusted to allow for extra pairs w
 a default color in foreground and/or background.
 .bP
 The value of the second and
-third arguments must be between 0 and \fBCOLORS\fR.
+third arguments must be between 0 and \fBCOLORS\-1\fR.
 Color pair 0 is assumed to be white on black,
 but is actually whatever the terminal implements before color is initialized.
 It cannot be modified by the application.
@@ -121,7 +121,7 @@ default colors (color number \fB\-1\fR) if you first i
 The \fBinit_color\fR routine changes the definition of a color.  It takes four
 arguments: the number of the color to be changed followed by three RGB values
 (for the amounts of red, green, and blue components).  The value of the first
-argument must be between \fB0\fR and \fBCOLORS\fR.  (See the section
+argument must be between \fB0\fR and \fBCOLORS\-1\fR.  (See the section
 \fBColors\fR for the default color index.)  Each of the last three arguments
 must be a value between 0 and 1000.  When \fBinit_color\fR is used, all
 occurrences of that color on the screen immediately change to the new
@@ -143,7 +143,7 @@ of the red, green, and blue (RGB) components in a colo
 arguments: the color number, and three addresses of \fBshort\fRs for storing
 the information about the amounts of red, green, and blue components in the
 given color.  The value of the first argument must be between 0 and
-\fBCOLORS\fR.  The values that are stored at the addresses pointed to by the
+\fBCOLORS\-1\fR.  The values that are stored at the addresses pointed to by the
 last three arguments are between 0 (no component) and 1000 (maximum amount of
 component).
 .PP
@@ -152,7 +152,7 @@ given color-pair consists of.  It requires three argum
 number, and two addresses of \fBshort\fRs for storing the foreground and the
 background color numbers.  The value of the first argument must be between 1
 and \fBCOLOR_PAIRS\-1\fR.  The values that are stored at the addresses pointed
-to by the second and third arguments are between 0 and \fBCOLORS\fR.
+to by the second and third arguments are between 0 and \fBCOLORS\-1\fR.
 .SS Colors
 In \fB<curses.h>\fR the following macros are defined.  These are the default
 colors.  \fBcurses\fR also assumes that \fBCOLOR_BLACK\fR is the default
Only in ncurses-5.9-20141101/man: curs_color.3x.orig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]