For those people that debug using console logging text to see output visually, you can also add color to terminals that support it. You just need to add these string before the text you want to color. Use ANSI_RESET after to reset back to normal. I’m using this currently to help debug some graphical issue and i use ascii representation of the data to visually see what would be drawn and I group graphic objects by color. In the accompanying text information that is output I then color the text according to match the color of the graphical output.
public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";
public static final String ANSI_BLUE = "\u001B[34m";
public static final String ANSI_PURPLE = "\u001B[35m";
public static final String ANSI_CYAN = "\u001B[36m";
public static final String ANSI_WHITE = "\u001B[37m";
public static final String ANSI_BRIGHT_BLACK = "\u001B[90m";
public static final String ANSI_BRIGHT_RED = "\u001B[91m";
public static final String ANSI_BRIGHT_GREEN = "\u001B[92m";
public static final String ANSI_BRIGHT_YELLOW = "\u001B[93m";
public static final String ANSI_BRIGHT_BLUE = "\u001B[94m";
public static final String ANSI_BRIGHT_PURPLE = "\u001B[95m";
public static final String ANSI_BRIGHT_CYAN = "\u001B[96m";
public static final String ANSI_BRIGHT_WHITE = "\u001B[97m";
public static final String ANSI_BLACK_BACKGROUND = "\u001B[40m";
public static final String ANSI_RED_BACKGROUND = "\u001B[41m";
public static final String ANSI_GREEN_BACKGROUND = "\u001B[42m";
public static final String ANSI_YELLOW_BACKGROUND = "\u001B[43m";
public static final String ANSI_BLUE_BACKGROUND = "\u001B[44m";
public static final String ANSI_PURPLE_BACKGROUND = "\u001B[45m";
public static final String ANSI_CYAN_BACKGROUND = "\u001B[46m";
public static final String ANSI_WHITE_BACKGROUND = "\u001B[47m";
public static final String ANSI_BRIGHT_BLACK_BACKGROUND = "\u001B[100m";
public static final String ANSI_BRIGHT_RED_BACKGROUND = "\u001B[101m";
public static final String ANSI_BRIGHT_GREEN_BACKGROUND = "\u001B[102m";
public static final String ANSI_BRIGHT_YELLOW_BACKGROUND = "\u001B[103m";
public static final String ANSI_BRIGHT_BLUE_BACKGROUND = "\u001B[104m";
public static final String ANSI_BRIGHT_PURPLE_BACKGROUND = "\u001B[105m";
public static final String ANSI_BRIGHT_CYAN_BACKGROUND = "\u001B[106m";
public static final String ANSI_BRIGHT_WHITE_BACKGROUND = "\u001B[107m";