On Tue, Jun 27, 2023 at 07:49:19PM +0100, Luís Picciochi Oliveira wrote:

>   mvn --batch-mode --quiet | less
> 
> 
> * With libjansi-java 2.4.0-2, escape characters are seen in the output, like
> so:
> 
> ESC[0m[INFO] Scanning for projects...

Hi Luís,

Thank you for the bug report.  I don't know the full story of why the
change in behavior between 2.4.0-1 and 2.4.0-2, but I 
agree that escape sequences shouldn't be sent when maven is running
in batch mode and that we should address the question of colorized
output referenced in that commit [1] another way.

Emmanuel, do you recall what prompted the change?  I didn't see a bug,
but can propose adding a new switch to generate colorized output even
when a TTY isn't detected.  That will maintain the expected behavior
with --batch-mode, and we can adjust our build tooling to pass the new
switch if we really think we need it.

Thank you,
tony

[1] 
https://salsa.debian.org/java-team/jansi/-/commit/7f186cd4fc22308d7769db8eeeca26b560b81b1a

Attachment: signature.asc
Description: PGP signature

Reply via email to