[ 
https://issues.apache.org/jira/browse/MNG-8297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated MNG-8297:
---------------------------------
    Fix Version/s: 4.0.0-rc-2
                       (was: 4.0.0)

> Color output no longer possible on dumb terminals
> -------------------------------------------------
>
>                 Key: MNG-8297
>                 URL: https://issues.apache.org/jira/browse/MNG-8297
>             Project: Maven
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 4.0.x-candidate
>            Reporter: Stefan Oehme
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 4.0.0-rc-2
>
>
> We have a couple of integration tests for how our tool captures Maven console 
> output, including color. These tests capture Maven's output in a 
> ByteArrayOutputStream, which results in a "dumb terminal". With Maven 3.x, we 
> still get color output. With the latest 4.x nightlies, the output is no 
> longer colored. I dug through the code a bit and it seems to be related to 
> the change to JLine. I tried adding `-Djansi.mode=force` to the MAVEN_OPTS, 
> but that didn't bring coloring back.
> You can try this yourself by doing `export TERM=dumb`, followed by any Maven 
> command. The output is uncolored, even though Maven itself says `Message 
> scheme: color`
> To be clear, I think having no color on dumb terminals is the correct 
> default, but there should be a switch to bring it back for testing purposes. 
> If there already is, please let me know how.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to