public final class Ansi extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Ansi.SeverityLevel |
Constructor and Description |
---|
Ansi(boolean isAnsiTerminal)
Construct an Ansi object and conditionally enable fancy escape sequences.
|
public Ansi(boolean isAnsiTerminal)
public static Ansi withoutTty()
public static Ansi forceTty()
public boolean isAnsiTerminal()
public String getHighlightedWarningSequence()
public String getHighlightedResetSequence()
public void printHighlightedSuccessText(PrintStream stream, String text)
public void printlnHighlightedFailureText(PrintStream stream, String text)
public String asHighlightedStatusText(Ansi.SeverityLevel level, String text)
public String cursorPreviousLine(int y)
y
lines up.public String clearLine()
public String clearToTheEndOfLine()