You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Marco Herrn (JIRA)" <ji...@apache.org> on 2019/07/31 08:32:00 UTC

[jira] [Commented] (NETBEANS-1846) Netbeans can't print out colored text in the output window

    [ https://issues.apache.org/jira/browse/NETBEANS-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896915#comment-16896915 ] 

Marco Herrn commented on NETBEANS-1846:
---------------------------------------

I could narrow the problem down. It is not directly related to Netbeans >= 11.

The output coloring works well when using the bundled maven (3.3.9).

The coloring breaks when using a custom maven 3.6.0.

When calling the same commandline netbeans uses, the coloring works when doing starting the application from the linux console for both, the bundled and the custom maven.

So it seems that the bundled maven correctly gets the color while a custom maven doesn't.

> Netbeans can't print out colored text in the output window
> ----------------------------------------------------------
>
>                 Key: NETBEANS-1846
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1846
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Output Window
>    Affects Versions: 10.0
>            Reporter: Peter
>            Priority: Major
>         Attachments: Screenshot 2018-12-30 at 1.00.53 PM.png, Screenshot 2018-12-30 at 1.01.03 PM.png
>
>
> public class TestConsole {
> @Test
>  public void test() throws Exception {
> String ANSI_RESET = "\u001B[0m";
>  String ANSI_RED = "\u001B[31m";
>  System.out.println(ANSI_RED + "XX");
>  System.out.flush();
>  System.out.println(ANSI_RESET);
>  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());
>  }
> }
>  
> <dependency>
>  <groupId>org.fusesource.jansi</groupId>
>  <artifactId>jansi</artifactId>
>  <version>1.17</version>
>  <scope>test</scope>
>  </dependency>
>  
> Tried Maven 3.3.9, 3.5.3, 3.6.0
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists