TerminalCapabilitiesDetector

class TerminalCapabilitiesDetector(envProvider: (String) -> String? = { System.getenv(it) }, hasConsole: () -> Boolean = { System.console() != null }, consoleCharsetProvider: () -> Charset? = { System.console()?.charset() }, osNameProvider: () -> String = { System.getProperty("os.name").orEmpty() })

Constructors

Link copied to clipboard
constructor(envProvider: (String) -> String? = { System.getenv(it) }, hasConsole: () -> Boolean = { System.console() != null }, consoleCharsetProvider: () -> Charset? = { System.console()?.charset() }, osNameProvider: () -> String = { System.getProperty("os.name").orEmpty() })

Functions

Link copied to clipboard
fun detect(noColor: Boolean = false): TerminalCapabilities