*FGCOLOR (KEYIN and DISPLAY)


ANSI

*FGCOLOR=[{n} | {*color}]

 

This list control provides access to the color attributes. {n} may be a decimal value or a numeric variable between zero (0) and sixteen (16).

 

The various colors are defined by the following color map.

 

The colors may be in bold mode by adding eight (8) to the foreground value.

 

Note that it is not possible on most monitors to display YELLOW unless the BOLD value is added to the BROWN value.

 

The color values may be given as any one of the color keywords defined in the table below. For example:

 

COLOR

FORM

"4"

 

...

 

 

 

DISPLAY

*FGCOLOR=4

 

DISPLAY

*FGCOLOR=COLOR

 

DISPLAY

*FGCOLOR=*RED

 

Each of these DISPLAY statements sets the foreground color to red.

 

Color

Value

*BLACK

0

*BLUE

1

*GREEN

2

*CYAN

3

*RED

4

*MAGENTA

5

*BROWN

6

*WHITE

7

 

See Also: List Controls (KEYIN and DISPLAY), List Controls (KEYIN), DISPLAY, KEYIN

 



PL/B Language Reference *ES (KEYIN and DISPLAY) *GOFF (KEYIN and DISPLAY)