C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
_selectpalette
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _selectpalette function works only under the video modes
     _MRES4COLOR, _MRESNOCOLOR, and _ORESCOLOR. A CGA palette consists
     of a selectable background color (Color 0) and three set colors.
     Under the _MRES4COLOR mode, the <number> argument selects one of
     the four predefined palettes shown below:
 
     _MRES4COLOR Palette Colors
 
               -------------- Color Index --------------
     Palette
     Number    Color 1       Color 2         Color 3
 
     0         Green         Red             Brown
     1         Cyan          Magenta         White
     2         Light green   Light red       Yellow
     3         Light cyan    Light magenta   Bright white
 
     The _MRESNOCOLOR graphics mode is normally used with
     black-and-white composite monitors, with palettes consisting of
     shades of gray. This mode will produce color when used with a
     color monitor. The number of different palettes available depends
     on whether CGA or EGA hardware is used. With a CGA configuration,
     the two different palettes shown in the table below are
     available. Note that although four palette numbers are listed,
     palettes 0 and 1 are identical, as are palettes 2 and 3.
 
     _MRESNOCOLOR Mode CGA Palette Colors
 
               -------------- Color Index -------------
     Palette
     Number    Color 1        Color 2       Color 3
 
     0         Blue           Red           White
     1         Blue           Red           White
     2         Light Blue     Light Red     Bright White
     3         Light Blue     Light Red     Bright White
 
     With an EGA, the three different palettes shown in the table
     below are available in the _MRESNOCOLOR video mode. Note that
     although four palette numbers are listed, palettes 1 and 3 are
     identical.
 
     _MRESNOCOLOR Mode EGA Palette Colors
 
               ------------ Color Index -------------
     Palette
     Number    Color 1         Color 2       Color 3
 
     0         Green           Red           Brown
     1         Cyan            Magenta       White
     2         Light Green     Light Red     Yellow
     3         Cyan            Magenta       White
 
     You can use the _ORESCOLOR high-resolution video mode for the
     Olivetti graphics adapters found in most Olivetti computers and
     in the AT&T 6300 series computers. In _ORESCOLOR mode, an
     argument number in the range 0-15 selects one of the colors
     listed below. The background color is always black in this mode.
 
     _ORESCOLOR Mode Colors
 
     Index   Color        Index   Color
 
     0       Black        8       Dark Gray
     1       Blue         9       Light Blue
     2       Green        10      Light Green
     3       Cyan         11      Light Cyan
     4       Red          12      Light Red
     5       Magenta      13      Light Magenta
     6       Brown        14      Yellow
     7       White        15      Bright White
 
     Return Value
 
     The function returns the value of the previous palette. There is
     no error return.
                                    -♦-