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 void |
setConsoleAvailable(Boolean consoleAvailable)
Sets if the System.console() is know 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 toString(Object... elements)
AnsiElement
s will
be encoded as required.elements
- the elements to encodeCopyright © 2015 Pivotal Software, Inc.. All rights reserved.