Terminal

constructor(ansiLevel: AnsiLevel? = null, theme: Theme = Theme.Default, width: Int? = null, height: Int? = null, hyperlinks: Boolean? = null, tabWidth: Int = 8, interactive: Boolean? = null)

Parameters

ansiLevel

The level of color support to use, or null to detect the level of the current terminal

theme

The theme to use for widgets and styles like success

width

The width to render widget and wrap text, or null to detect the current width. On JVM, you'll need to call info.updateTerminalSize to detect the size correctly.

height

The height of th terminal to use when rendering widgets, or null to detect the current width. On JVM, you'll need to call info.updateTerminalSize to detect the size correctly.

hyperlinks

whether to render hyperlinks using ANSI codes, or null to detect the capability

tabWidth

The number of spaces to use for \t characters

interactive

Set to true to always use color codes, even if stdout is redirected to a file, or null to detect the capability. This can be useful if you expect to call your program from some other source like gradle that forwards the output to the terminal.


constructor(theme: Theme, tabWidth: Int, terminalInterface: TerminalInterface)

Parameters

theme

The theme to use for widgets and styles like success

tabWidth

The number of spaces to use for \t characters

terminalInterface

The TerminalInterface to use to read and write


constructor(theme: Theme, terminalInterface: TerminalInterface)

Parameters

theme

The theme to use for widgets and styles like success

terminalInterface

The TerminalInterface to use to read and write


constructor(terminalInterface: TerminalInterface)

Parameters

terminalInterface

The TerminalInterface to use to read and write