Class Colors
java.lang.Object
ch.autumo.beetroot.utils.common.Colors
ANSI Colors.
To activate ANSI colors in Windows:
- CMD and PowerShell: "reg add HKCU\Console /v VirtualTerminalLevel /t REG_DWORD /d 1"
- PowerShell: "Set-ItemProperty HKCU:\Console VirtualTerminalLevel -Type DWORD 1"
- You also could download the Windows Terminal: Windows Terminal
See also: https://stackoverflow.com/questions/51680709/colored-text-output-in-powershell-console-using-ansi-vt100-codes/51681675#51681675
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringBlack colored string.static StringCyan colored string.static StringDark-Black colored string.static StringDark-Cyan colored string.static StringDark-Green colored string.static StringdarkMangenta(String text) Dark-Mangenta colored string.static StringDark-Red colored string.static StringDark-White colored string.static StringdarkYellow(String text) Dark-Yellow colored string.static StringforegroundColorize(String text, com.diogonunes.jcolor.Attribute attribute) Colorize text.static StringGreen colored string.static StringMangenta colored string.static StringOrange colored string.static StringRed colored string.static StringWhite colored string.static StringYellow colored string.
-
Constructor Details
-
Colors
public Colors()Default constructor.
-
-
Method Details
-
foregroundColorize
-
black
-
darkBlack
-
white
-
darkWhite
-
mangenta
-
darkMangenta
-
cyan
-
darkCyan
-
green
-
darkGreen
-
yellow
-
darkYellow
-
red
-
darkRed
-
orange
-