public class TerminalCapabilities
| Modifier and Type | Field and Description |
|---|---|
static TerminalCapabilities |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consoleAvailable()
Return true if stdout and stdin are both ttys.
|
TermColors.Level |
detectANSISupport(TermColors.Level p)
Return the best guess at the current terminal's support for ANSI colors.
|
public static TerminalCapabilities INSTANCE
public TermColors.Level detectANSISupport(TermColors.Level p)
Return the best guess at the current terminal's support for ANSI colors.
This will always return NONE if TerminalCapabilities.consoleAvailable returns false.
TerminalCapabilities.consoleAvailablepublic boolean consoleAvailable()
Return true if stdout and stdin are both ttys.