Netbeans console has no color, but has color in my other Mac

Netbeans console has no color, but has color in my other Mac

2018/05/22 Netbeans 0

Netbeans console has no color, but has color in my other Mac. Both Mac OS are same, JDK same too. Don’t know why. The code i use to print color text are:

		String ANSI_RESET = "\u001B[0m";
		String ANSI_RED = "\u001B[31m";
		System.out.println(ANSI_RED + "X" + ANSI_RESET);

Leave a Reply

Your email address will not be published. Required fields are marked *