- If the color-pair was previously initialized, the screen
- is refreshed and all occurrences of that color-pair are
- changed to the new definition. As an extension, ncurses
- allows you to set color pair 0 via the <STRONG>assume_default_col-</STRONG>
- <STRONG>ors</STRONG> routine, or to specify the use of default colors (col-
- or number <STRONG>-1</STRONG>) if you first invoke the <STRONG>use_default_colors</STRONG>
- routine. The <STRONG>init_color</STRONG> 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 <STRONG>0</STRONG> and <STRONG>COLORS</STRONG>. (See the
- section <STRONG>Colors</STRONG> for the default color index.) Each of the
- last three arguments must be a value between 0 and 1000.
- When <STRONG>init_color</STRONG> is used, all occurrences of that color on
- the screen immediately change to the new definition. The
- <STRONG>has_colors</STRONG> routine requires no arguments. It returns <STRONG>TRUE</STRONG>
- if the terminal can manipulate colors; otherwise, it re-
- turns <STRONG>FALSE</STRONG>. This routine facilitates writing terminal-
- independent programs. For example, a programmer can use
- it to decide whether to use color or some other video at-
- tribute. The <STRONG>can_change_color</STRONG> routine requires no argu-
- ments. It returns <STRONG>TRUE</STRONG> if the terminal supports colors
- and can change their definitions; other, it returns <STRONG>FALSE</STRONG>.
- This routine facilitates writing terminal-independent pro-
- grams. The <STRONG>color_content</STRONG> routine gives programmers a way
- to find the intensity of the red, green, and blue (RGB)
- components in a color. It requires four arguments: the
- color number, and three addresses of <STRONG>short</STRONG>s for storing
- the information about the amounts of red, green, and blue
- components in the given color. The value of the first ar-
- gument must be between 0 and <STRONG>COLORS</STRONG>. The values that are
- stored at the addresses pointed to by the last three argu-
- ments are between 0 (no component) and 1000 (maximum
- amount of component). The <STRONG>pair_content</STRONG> routine allows
- programmers to find out what colors a given color-pair
- consists of. It requires three arguments: the color-pair
- number, and two addresses of <STRONG>short</STRONG>s for storing the fore-
- ground and the background color numbers. The value of the
- first argument must be between 1 and <STRONG>COLOR_PAIRS-1</STRONG>. The
- values that are stored at the addresses pointed to by the
- second and third arguments are between 0 and <STRONG>COLORS</STRONG>.
+ If the color-pair was previously initialized, the screen
+ is refreshed and all occurrences of that color-pair are
+ changed to the new definition.
+
+ As an extension, ncurses allows you to set color pair 0
+ via the <STRONG>assume_default_colors</STRONG> routine, or to specify the
+ use of default colors (color number <STRONG>-1</STRONG>) if you first in-
+ voke the <STRONG>use_default_colors</STRONG> routine.
+
+ The <STRONG>init_color</STRONG> 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 <STRONG>0</STRONG> and <STRONG>COLORS</STRONG>. (See the section
+ <STRONG>Colors</STRONG> for the default color index.) Each of the last
+ three arguments must be a value between 0 and 1000. When
+ <STRONG>init_color</STRONG> is used, all occurrences of that color on the
+ screen immediately change to the new definition.
+
+ The <STRONG>has_colors</STRONG> routine requires no arguments. It returns
+ <STRONG>TRUE</STRONG> if the terminal can manipulate colors; otherwise, it
+ returns <STRONG>FALSE</STRONG>. This routine facilitates writing terminal-
+ independent programs. For example, a programmer can use
+ it to decide whether to use color or some other video at-
+ tribute.
+
+ The <STRONG>can_change_color</STRONG> routine requires no arguments. It
+ returns <STRONG>TRUE</STRONG> if the terminal supports colors and can
+ change their definitions; other, it returns <STRONG>FALSE</STRONG>. This
+ routine facilitates writing terminal-independent programs.
+
+ The <STRONG>color_content</STRONG> routine gives programmers a way to find
+ the intensity of the red, green, and blue (RGB) components
+ in a color. It requires four arguments: the color number,
+ and three addresses of <STRONG>short</STRONG>s 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 <STRONG>COLORS</STRONG>. The values that are stored at the
+ addresses pointed to by the last three arguments are be-
+ tween 0 (no component) and 1000 (maximum amount of compo-
+ nent).
+
+ The <STRONG>pair_content</STRONG> routine allows programmers to find out
+ what colors a given color-pair consists of. It requires
+ three arguments: the color-pair number, and two addresses
+ of <STRONG>short</STRONG>s for storing the foreground and the background
+ color numbers. The value of the first argument must be
+ between 1 and <STRONG>COLOR_PAIRS-1</STRONG>. The values that are stored
+ at the addresses pointed to by the second and third argu-
+ ments are between 0 and <STRONG>COLORS</STRONG>.