bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH] man: Refer to colordef page in terminfo(5)


From: Mihail Konev
Subject: [PATCH] man: Refer to colordef page in terminfo(5)
Date: Sun, 18 Dec 2016 21:25:21 +0500

---

On Sat, Dec 17, 2016 at 12:14:55PM -0500, Thomas Dickey wrote:
> On Fri, Dec 16, 2016 at 03:19:19AM +0500, Mihail Konev wrote:
> > ---
> > 'tput 12 15 16 17' now outputs '\e]Pc0f1011'
> > (before it was '\e]Pc030404')
> 
> The latter (scaling) appears to be as documented (man init_color):
> 
>        The init_color 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 0 and COLORS.  (See the
>        section Colors for the default color index.)  Each of  the  last  three
>        arguments must be a value between 0 and 1000.  When init_color is used,
>        all occurrences of that color on the screen immediately change  to  the
>        new definition.
> 
> and X/Open agrees with that:
> 
> http://pubs.opengroup.org/onlinepubs/7908799/xcurses/can_change_color.html
> 
>       For both functions, the color argument must be in the range from 0 to
>       and including COLORS-1.  Valid intensity values range from 0 (no
>       intensity component) up to and including 1000 (maximum intensity in
>       that component). 
> 

 man/terminfo.tail | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/man/terminfo.tail b/man/terminfo.tail
index 4ee27a0df9fe..feb5c07a1e25 100644
--- a/man/terminfo.tail
+++ b/man/terminfo.tail
@@ -1324,6 +1324,8 @@ character pairs right to left in sequence; these become 
the ACSC string.
 .PP
 .SS Color Handling
 .PP
+For handling of color definitions, see \fBinit_color\fR(3x).
+.PP
 Most color terminals are either \*(``Tektronix-like\*('' or \*(``HP-like\*(''.
 Tektronix-like
 terminals have a predefined set of N colors (where N usually 8), and can set
-- 
2.9.2




reply via email to

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