public final class PlatformColor extends Object
Don't use this class if you need console colors. Use Console
Modifier and Type | Method and Description |
---|---|
static String |
forColor(String color)
Obtains the colors needed by name
|
static boolean |
isWindows() |
public static final String EMPTY
public static String forColor(String color)
This is not case-sensitive
The list of colors which can be retrieved:
color
- the name of the color to retrieve the escape forEMPTY
if it does not exist, or
if the platform is windows, which does not support color codes or ANSI escapespublic static boolean isWindows()
Copyright © 2016. All rights reserved.