-
- Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
On Windows, when I use logback 1.4.14
with Jansi 2.4.0
in the old CMD.EXE console, the logback fails to produce color-coded output. The same code executed in Windows Terminal works as expected.
Interestingly, substituting the current Jansi 2.4.0
with an older Jansi 1.18
, seems to fix the issue. This suggests that there might be some differences in the newer versions of Jansi that Logback doesn't handle very well.
The following ZIP contains a simple example (requires Java 11+) that produces colored output using standalone Jansi 1.18
and 2.4.0
, and Logback with Jansi 1.18
and 2.4.0
. To execute: extract and run jansi-examples.bat
Here's the output produced on the same machine in CMD.EXE console:
and in Windows Terminal: