public abstract class AnsiOutput extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnsiOutput.Enabled
Possible values to pass to
setEnabled(org.springframework.boot.ansi.AnsiOutput.Enabled) . |
Constructor and Description |
---|
AnsiOutput() |
Modifier and Type | Method and Description |
---|---|
static String |
encode(AnsiElement element)
Encode a single
AnsiElement if output is enabled. |
static void |
setConsoleAvailable(Boolean consoleAvailable)
Sets if the System.console() is known to be available.
|
static void |
setEnabled(AnsiOutput.Enabled enabled)
Sets if ANSI output is enabled.
|
static String |
toString(Object... elements)
Create a new ANSI string from the specified elements.
|
public static void setEnabled(AnsiOutput.Enabled enabled)
enabled
- if ANSI is enabled, disabled or detectedpublic static void setConsoleAvailable(Boolean consoleAvailable)
consoleAvailable
- if the console is known to be available or null
to
use standard detection logic.public static String encode(AnsiElement element)
AnsiElement
if output is enabled.element
- the element to encodepublic static String toString(Object... elements)
AnsiElement
s will
be encoded as required.elements
- the elements to encodeCopyright © 2019 Pivotal Software, Inc.. All rights reserved.