Eclipse console not printing colors

Viewed 2443

I'm trying to print colored text to eclipse console using ANSI Sequences (as described for example here: How to print color in console using System.out.println?).

I've tried multiple approaches, most recently a very implicit one:

public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_RED = "\u001B[31m";

System.out.println(ANSI_RED + "*" + ANSI_RESET);

but all I'm getting from console is:

enter image description here

Am I doing something wrong?

Thanks for your help!

0 Answers
Related