Package dev.prozilla.pine.common.system
Class Ansi
java.lang.Object
dev.prozilla.pine.common.system.Ansi
Utility class for constructing ANSI escape sequences.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
static String
static String
static String
Sets the color of the given text.static String
Sets the background color of the given text.static String
static String
static String
Sets the decoration of the given text.static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
Removes all ANSI escape codes from a given text.static String
static String
static String
static String
static String
-
Field Details
-
RESET
- See Also:
-
BLACK
- See Also:
-
RED
- See Also:
-
GREEN
- See Also:
-
YELLOW
- See Also:
-
BLUE
- See Also:
-
PURPLE
- See Also:
-
CYAN
- See Also:
-
WHITE
- See Also:
-
BLACK_BACKGROUND
- See Also:
-
RED_BACKGROUND
- See Also:
-
GREEN_BACKGROUND
- See Also:
-
YELLOW_BACKGROUND
- See Also:
-
BLUE_BACKGROUND
- See Also:
-
PURPLE_BACKGROUND
- See Also:
-
CYAN_BACKGROUND
- See Also:
-
WHITE_BACKGROUND
- See Also:
-
BOLD
- See Also:
-
DIM
- See Also:
-
ITALIC
- See Also:
-
UNDERLINED
- See Also:
-
-
Constructor Details
-
Ansi
public Ansi()
-
-
Method Details
-
reset
-
black
-
red
-
green
-
yellow
-
blue
-
purple
-
cyan
-
white
-
color
Sets the color of the given text. -
blackBg
-
redBg
-
greenBg
-
yellowBg
-
blueBg
-
purpleBg
-
cyanBg
-
whiteBg
-
colorBg
Sets the background color of the given text. -
bold
-
dim
-
italic
-
underline
-
decorate
Sets the decoration of the given text. -
strip
Removes all ANSI escape codes from a given text.
-