Color in character interfaces
Color in a character interface differs from color in a graphical interface in these ways:
In character interfaces, the
BGCOLOR and
FGCOLOR attributes have the unknown value (?).
Each location in the color table contains a foreground/background color pair.
DCOLOR specifies a foreground/background color pair that a widget uses when it displays data.
PFCOLOR specifies a foreground/background color pair that a widget uses when it prompts for data.
When designing your interface, make sure that you specify different color pairs for DCOLOR and PFCOLOR.
In this section: