- it to decide whether to use color or some other video
- attribute.
-
- 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
- between 0 (no component) and 1000 (maximum amount of com-
- ponent).
-
- 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>.
+ 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>.