命令行彩色打印工具
public enum SystemColorEunm {
WHITE(0),
RED(31),
GREEN(32),
YELLOW(33),
BLUE(34),
PURPLE(35),
CYAN(36),
GREY(37);
SystemColorEunm(int color){
this.color = color;
}
private int color;
public String paint(String content){
return String.format("\033[;%dm%s\033[0m",color,content);
}
}