On Sat, Jul 15, 2023 at 03:56:01PM +0200, Emmanuel Bourg wrote: > On 08/07/2023 20:22, tony mancill wrote: > > > Emmanuel, do you recall what prompted the change? > > I think the issue is that when Maven runs in pbuilder, the TTY isn't > detected and colors get disabled (batch mode isn't used for Debian builds > though). If anything is changed please ensure that building with pdebuild > preserves the colors.
Looking at the sources (finally), jansi already supports a mode to "force" [1] escape sequences, even when the output is not a terminal. I propose that we revert the patch and update the Java build tooling to set the property as desired for our builds. Once I get this tested and the property configured, I'll upload to experimental. Thanks, tony [1] https://salsa.debian.org/java-team/jansi/-/blob/738159f052f027fc0816c95ecc38a424f8aa3637/src/main/java/org/fusesource/jansi/AnsiConsole.java#L83-86