public enum ANSICode extends Enum<ANSICode>
| Enum Constant and Description |
|---|
BG_BLACK |
BG_BLUE |
BG_CYAN |
BG_GREEN |
BG_MAGENTA |
BG_RED |
BG_WHITE |
BG_YELLOW |
BLACK |
BLINK |
BLUE |
BOLD |
CLEAR |
CYAN |
END_OF_LINE |
GREEN |
INVISIBLE |
MOVE_TO_TOP |
NO_WRAP |
PURPLE |
RED |
RESET |
REVERSED |
UNDERLINED |
WHITE |
WRAP |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static boolean |
isActive() |
static void |
setActive(boolean active) |
String |
toString() |
static ANSICode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ANSICode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ANSICode BLACK
public static final ANSICode RED
public static final ANSICode GREEN
public static final ANSICode YELLOW
public static final ANSICode BLUE
public static final ANSICode PURPLE
public static final ANSICode CYAN
public static final ANSICode WHITE
public static final ANSICode BG_GREEN
public static final ANSICode BG_BLACK
public static final ANSICode BG_RED
public static final ANSICode BG_YELLOW
public static final ANSICode BG_BLUE
public static final ANSICode BG_MAGENTA
public static final ANSICode BG_CYAN
public static final ANSICode BG_WHITE
public static final ANSICode RESET
public static final ANSICode BOLD
public static final ANSICode UNDERLINED
public static final ANSICode BLINK
public static final ANSICode REVERSED
public static final ANSICode INVISIBLE
public static final ANSICode END_OF_LINE
public static final ANSICode MOVE_TO_TOP
public static final ANSICode NO_WRAP
public static final ANSICode WRAP
public static final ANSICode CLEAR
public static ANSICode[] values()
for (ANSICode c : ANSICode.values()) System.out.println(c);
public static ANSICode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void setActive(boolean active)
public static boolean isActive()
public String getCode()
Copyright © 2010–2016. All rights reserved.