defaultDisplayAttributes (EGL システム変数)

consoleLib.defaultDisplayAttributes システム変数を使用すると、 consoleLib のさまざまな "display" 関数 (consoleLib.displayAtLine()consoleLib.displayAtPosition() など) によって作成されるテキストのデフォルトの表示特性を指定することができます。

consoleLib.defaultDisplayAttributes 変数に以下のプロパティーを設定できます。 詳しくは、それぞれのプロパティーのトピックを参照してください。

型: PresentationAttributes

以下の例は、変数にプロパティーの値を設定する方法を示しています。 最初の例では、ドット構文を使用しています。
consoleLib.defaultDisplayAttributes.color = red;
consoleLib.defaultDisplayAttributes.highlight=[underline];
あるいは、値の設定ブロックを使用して、単一の文にすべてのプロパティーを設定することもできます。
consoleLib.defaultDisplayAttributes {color = red, highlight=[underline]};
通常は以下のように、openUI 文の前に属性を設定します。
consoleLib.defaultDisplayAttributes {color=red};
openUI myRegister;

フィードバック