Variable consoleConst

console: {
    debug(...input) => void;
    error(...input) => void;
    log(...input) => void;
    trace(...input) => void;
    warn(...input) => void;
} = ...

The global console object contains functions for printing text to the screen, which can be useful for text-based applications, and is also useful for debugging.

All methods use the Switch.inspect() method for formatting, and the Switch.print() method to output to the screen.

NOTE: Invoking any method on the console object switches the application to text rendering mode, clearing any pixels previously drawn on the screen using the Canvas API.

Type declaration

  • debug:function
    • console.debug() is an alias for console.log().

      Parameters

      • Rest ...input: unknown[]

      Returns void

  • error:function
    • Logs to the screen the formatted input as red text.

      Parameters

      • Rest ...input: unknown[]

      Returns void

  • log:function
    • Logs to the screen the formatted input as white text.

      Parameters

      • Rest ...input: unknown[]

      Returns void

  • trace:function
    • Parameters

      • Rest ...input: unknown[]

      Returns void

  • warn:function
    • Logs to the screen the formatted input as yellow text.

      Parameters

      • Rest ...input: unknown[]

      Returns void

Generated using TypeDoc