set_color

Purpose:

Set the display color or status of variables such as REAL, INTEGER, LOGICAL, STRING, and their arrays.

Enter:

set_color <variable_label> <color>

or

set_color <variable_label> “<computed expression>”

or

set_color <filename>

Where:

variable_label

Specify the label of the variable to modify.

color

Specify the color value to set.
Options:
BLINK
INVERSE
NORMAL
BLUE
GREEN
CYAN
RED
MAGENTA
YELLOW
WHITE
BLACK
BLINK_BLUE
BLINK_GREEN
BLINK_CYAN
BLINK_RED
BLINK_MAGENTA
BLINK_YELLOW
BLINK_BLACK

computed_expression

Specify any if/then/else construct to dynamically determine the color.

filename

Specify a file path containing lines with label and color pairs for batch processing.

Example:

set_color engine_hours  RED
The above command sets the engine_hours display status to RED

set_color xflg “if( engine_hours > 1000[hr] ) then BLINK_RED else GREEN”
The above command sets the display status of xflg to BLINK_RED if the engine_hours variable is > 1000[hr].  The xflg display status will be set to GREEN if the engine_hours variable is <= 1000[hr]

set_color /specs/var_colors

Contents of /specs/var_colors:
    engine_hours BLUE
    xflg  CYAN

The above command sets the display status of the engine_hours variable to BLUE and the display status of the xflg variable to CYAN.

Notes:

Colors are case-insensitive. The program supports batch input from files or stdin for multiple variable updates.

See Also: