public class AnsiTerminal extends Object implements AnsiConstants
POSTFIX, PREFIX, SEPARATOR| Modifier and Type | Method and Description |
|---|---|
static void |
cyan(String text)
Change text color to cyan.
|
static void |
foreGroundColor(AnsiForegroundColor color)
Change text color
|
static void |
green(String text)
Change text color to green.
|
static void |
logError(String text)
Log error.
|
static void |
logInfo(String text)
Log info.
|
static void |
logWarn(String text)
Log warning.
|
static void |
print(String text)
Print text ton console.
|
static void |
print(String text,
AnsiForegroundColor color)
Output.
|
static void |
print(String text,
OSSupported os) |
static void |
red(String text)
Change text color to red.
|
static void |
setup(AnsiForegroundColor color,
AnsiBackGroundColor backgroundColor,
AnsiTextAttribute attribute)
Change everything.
|
static void |
textAttribute(AnsiTextAttribute txt)
Change text color
|
static void |
white(String text)
Change text color to white.
|
static void |
yellow(String text)
Change text color to yellow.
|
public static void setup(AnsiForegroundColor color, AnsiBackGroundColor backgroundColor, AnsiTextAttribute attribute)
color - text colorbackgroundColor - attribute - public static void foreGroundColor(AnsiForegroundColor color)
color - blue colorpublic static void textAttribute(AnsiTextAttribute txt)
color - blue colorpublic static void print(String text)
text - current text to be displauyedpublic static void print(String text, OSSupported os)
public static void print(String text, AnsiForegroundColor color)
text - color - public static void white(String text)
public static void yellow(String text)
public static void red(String text)
public static void cyan(String text)
public static void green(String text)
public static void logWarn(String text)
text - text to be displayedpublic static void logInfo(String text)
text - text to be displayedpublic static void logError(String text)
text - text to be displayedCopyright © 2013–2017 FF4J. All rights reserved.