set_color
Purpose:
- Set the color of a variable (REAL, LOGICAL, INTEGER, STRING, or array).
Enter:
-
set_color <variable_label> <color>
or
set_color <variable_label> “<computed expression>”
or
set_color <filename>
or
set_color < stdin_file
Where:
-
variable_label Specify the label of the variable for which to set the color.
color
Specify the color value to which the variable is 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_BLACKcomputed_expression
Specify any if/then/else construct for determining color.
filename Specify a text file containing an indefinite number of lines, each containing a label, color pair of entries. All the options for ‘color’ described above are supported in the file entries. This form, where the argument is NOT a redirected stdin, may contain #comment lines, blank lines, etc., similar to a normal CyFlex spec file.
stdin_file Specify a text file containing an indefinite number of lines, each containing a label, color pair of entries. All the options for ‘color’ described above are supported in the file entries. When the input file is stdin_file, #comment lines and blank lines are not ignored and will produce an error.
Example:
-
set_color engine_hours RED
The above command sets the engine_hours display status to REDset_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 CYANThe above command sets the display status of the engine_hours variable to BLUE and the display status of the xflg variable to CYAN
set_color < stdin_filename
The above command will read the stdin_filename and change the color of the variables specified within the file