Here you can find the source of colorize(String color, String str)
public static String colorize(String color, String str)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { public static final String RESET = "\033[0m"; public static String colorize(String color, String str) { return color + str + RESET; }// ww w . j a v a 2s.c o m }