Curses Library (libcurses.a)
The start_color subroutine initializes color. This subroutine requires no arguments. You must call the start_color subroutine if you intend to use color in your application. Except for the has_colors and can_change_color subroutines, you must call the start_color subroutine before any other color manipulation subroutine. A good time to call start_color is right after calling the initscr routine and after establishing whether the terminal supports color.
The start_color routine
initializes the following basic colors:
The subroutine also initializes two global variables: COLORS and COLOR_PAIRS. The COLORS variable is the maximum number of colors supported by the terminal. The COLOR_PAIRS variable is the maximum number of color-pairs supported by the terminal.
The start_color subroutine also restores the terminal's colors to the original values right after the terminal was turned on.
|Indicates the terminal does not support colors.
|Indicates the terminal does support colors.
To enable the color support for a terminal that supports color, use:
This subroutine is part of Base Operating System (BOS) Runtime.
The has_colors (has_colors Subroutine) subroutine, can_change_color (can_change_color, color_content, has_colors,init_color, init_pair, start_color or pair_content Subroutine) subroutine.
Curses Overview for Programming, List of Curses Subroutines, Manipulating Video Attributes in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.