TerminalInfo

data class TerminalInfo(var ansiLevel: AnsiLevel, var ansiHyperLinks: Boolean, val outputInteractive: Boolean, val inputInteractive: Boolean, val supportsAnsiCursor: Boolean)

Information about the current terminal

Constructors

Link copied to clipboard
constructor(ansiLevel: AnsiLevel, ansiHyperLinks: Boolean, outputInteractive: Boolean, inputInteractive: Boolean, supportsAnsiCursor: Boolean)

Properties

Link copied to clipboard

If true, ANSI hyperlink codes can be used

Link copied to clipboard

The level of ANSI codes to use when printing to the terminal

Link copied to clipboard

If false the intput stream is not an interactive terminal, such as when it's redirected from a file

Link copied to clipboard

Return true if both input and output are interactive

Link copied to clipboard

If false the output stream is not an interactive terminal, such as when it's redirected to a file.

Link copied to clipboard

If false using ANSI cursor movement codes may not work.