{"id":13354,"date":"2022-09-13T14:36:32","date_gmt":"2022-09-13T19:36:32","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?page_id=13354"},"modified":"2025-10-08T13:12:45","modified_gmt":"2025-10-08T18:12:45","slug":"set_color","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/set_color\/","title":{"rendered":"set_color"},"content":{"rendered":"<h3>Purpose:<\/h3>\n<dl>\n<dd>Set the display color or status of variables such as REAL, INTEGER, LOGICAL, STRING, and their arrays.<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>set_color<\/strong> &lt;variable_label&gt; &lt;color&gt;<\/p>\n<p>or<\/p>\n<p><strong>set_color<\/strong> &lt;variable_label&gt; &#8220;&lt;computed expression&gt;&#8221;<\/p>\n<p>or<\/p>\n<p><strong>set_color<\/strong> &lt;filename&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 97.9519%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 19.3975%;\">variable_label<\/td>\n<td style=\"width: 224.084%;\">\n<p>Specify the label of the variable to modify.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.3975%;\">\n<p>color<\/p>\n<\/td>\n<td style=\"width: 224.084%;\">\n<p>Specify the color value to set.<br \/>\nOptions:<br \/>\nBLINK<br \/>\nINVERSE<br \/>\nNORMAL<br \/>\nBLUE<br \/>\nGREEN<br \/>\nCYAN<br \/>\nRED<br \/>\nMAGENTA<br \/>\nYELLOW<br \/>\nWHITE<br \/>\nBLACK<br \/>\nBLINK_BLUE<br \/>\nBLINK_GREEN<br \/>\nBLINK_CYAN<br \/>\nBLINK_RED<br \/>\nBLINK_MAGENTA<br \/>\nBLINK_YELLOW<br \/>\nBLINK_BLACK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.3975%;\">\n<p>computed_expression<\/p>\n<\/td>\n<td style=\"width: 224.084%;\">\n<p>Specify any if\/then\/else construct to dynamically determine the color.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.3975%;\">filename<\/td>\n<td style=\"width: 224.084%;\">\n<p>Specify a file path containing lines with label and color pairs for batch processing.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p>set_color engine_hours\u00a0 RED<br \/>\nThe above command sets the engine_hours display status to RED<\/p>\n<p>set_color xflg &#8220;if( engine_hours &gt; 1000[hr] ) then BLINK_RED else GREEN&#8221;<br \/>\nThe above command sets the display status of xflg to BLINK_RED if the engine_hours variable is &gt; 1000[hr].\u00a0 The xflg display status will be set to GREEN if the engine_hours variable is &lt;= 1000[hr]<\/p>\n<p>set_color \/specs\/var_colors<\/p>\n<p>Contents of \/specs\/var_colors:<br \/>\n\u00a0\u00a0\u00a0 engine_hours BLUE<br \/>\n\u00a0\u00a0\u00a0 xflg\u00a0 CYAN<\/p>\n<p>The above command sets the display status of the engine_hours variable to BLUE and the display status of the xflg variable to CYAN.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>Colors are case-insensitive. The program supports batch input from files or stdin for multiple variable updates.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Set the display color or status of variables such as REAL, INTEGER, LOGICAL, STRING, and their arrays. Enter: set_color &lt;variable_label&gt; &lt;color&gt; or set_color &lt;variable_label&gt; &#8220;&lt;computed expression&gt;&#8221; or set_color &lt;filename&gt; 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 [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-13354","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/13354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=13354"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/13354\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=13354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}