Peter created NETBEANS-1846:

             Summary: Netbeans can't print out colored text in the output window
                 Key: NETBEANS-1846
             Project: NetBeans
          Issue Type: Bug
          Components: platform - Output Window
    Affects Versions: 10.0
            Reporter: Peter
         Attachments: Screenshot 2018-12-30 at 1.00.53 PM.png, Screenshot 
2018-12-30 at 1.01.03 PM.png

public class TestConsole {

 public void test() throws Exception {

String ANSI_RESET = "\u001B[0m";
 String ANSI_RED = "\u001B[31m";
 System.out.println(ANSI_RED + "XX");
 System.out.println("\033[31;1mHello\033[0m, \033[32;1;2mworld!\033[0m");
 System.out.println((char) 27 + "[32m" + "ERROR MESSAGE IN GREEN");
 System.out.println((char) 27 + "[33mYELLOW");

 System.setProperty("jansi.passthrough", "true");
 System.out.println(ansi().fg(RED).a("Hello").fg(GREEN).a(" World").reset());




Tried Maven 3.3.9, 3.5.3, 3.6.0


This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

Reply via email to