Returns the colors in a color pair.
#include <curses.h>
pair_content (Pair, F, B) short Pair; short *F, *B;
The pair_content subroutine returns the colors in a color pair. A color pair is made up of a foreground and background color. You must call the start_color subroutine before calling the pair_content subroutine.
Note: The color pair must already be initialized before calling the pair_content subroutine.
OK | Indicates the subroutine completed successfully. |
ERR | Indicates the pair has not been initialized. |
To obtain the foreground and background colors for color-pair 5 , use:
short *f, *b; pair_content(5,f,b);
For this subroutine to succeed, you must have already initialized the color pair. The foreground and background colors will be stored at the locations pointed to by f and b.
This subroutine is part of Base Operating System (BOS) Runtime.
The start_color subroutine, init_pair subroutine.
Curses Overview for Programming, List of Curses Subroutines, Manipulating Video Attributes, Working with Color in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.