AnsiOutput

abstract class AnsiOutput

Generates ANSI encoded output, automatically attempting to detect if the terminal supports ANSI.

Author

Phillip Webb

Yong-Hyun Kim

Since

1.0.0

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
enum Enabled
Possible values to pass to setEnabled.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun encode(element: AnsiElement): String
Encode a single AnsiElement if output is enabled.
Link copied to clipboard
open fun setConsoleAvailable(consoleAvailable: Boolean)
Sets if the System.console() is known to be available.
Link copied to clipboard
open fun toString(elements: Array<Any>): String
Create a new ANSI string from the specified elements.