TerminalInfo
data class TerminalInfo(var width: Int, var height: Int, var ansiLevel: AnsiLevel, var ansiHyperLinks: Boolean, val outputInteractive: Boolean, val inputInteractive: Boolean, val crClearsLine: Boolean)
Information about the current terminal
width and height don't automatically change if the terminal is resized. Call updateTerminalSize to get the latest values.
Constructors
Properties
Link copied to clipboard
If true, ANSI hyperlink codes can be used
Link copied to clipboard
If true, \r
will clear the entire line it's printed on in the current terminal, if false, \r
will only move the cursor
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.