User Tools

Site Tools


en:code:core:console

Console

When using Actionaz this object writes to the execution console. When using ActExec it behaves as the Stdio object and writes to the standard output.

Functions

print

Writes a line in the console.

Syntax

Console.print(text);

Arguments

  1. text - (string) the text to write

Returns

  • (object) this Console

Example

Console.print("Hello World!");

println

Writes a line in the console. A new line character is automatically added.

Added in Actionaz 3.0.1.

Syntax

Console.println(text);

Arguments

  1. text - (string) the text to write

Returns

  • (object) this Console

Example

Console.println("Hello World!");

printWarning

Writes a line in the console using a warning icon.

Syntax

Console.printWarning(text);

Arguments

  1. text - (string) the text to write

Returns

  • (object) this Console

Example

Console.printWarning("This is important!");

printlnWarning

Writes a line in the console using a warning icon. A new line character is automatically added.

Added in Actionaz 3.0.1.

Syntax

Console.printlnWarning(text);

Arguments

  1. text - (string) the text to write

Returns

  • (object) this Console

Example

Console.printlnWarning("This is important!");

printError

Writes a line in the console using an error icon.

Syntax

Console.printError(text);

Arguments

  1. text - (string) the text to write

Returns

  • (object) this Console

Example

Console.printError("This is critical!");

printlnError

Writes a line in the console using an error icon. A new line character is automatically added.

Added in Actionaz 3.0.1.

Syntax

Console.printlnError(text);

Arguments

  1. text - (string) the text to write

Returns

  • (object) this Console

Example

Console.printlnError("This is critical!");

clear

Clears the content of the console. Does nothing when executed by ActExec.

Added in Actionaz 3.9.0.

Syntax

Console.clear();

Returns

  • (object) this Console

Example

Console.clear();
en/code/core/console.txt · Last modified: 2016/10/09 11:10 (external edit)