It looks like your platform does not match the real jline.terminal property. I am just guessing here, but when I pass the parameter Daniel proposed on the Windows command line, I also see color escape codes.
Therefore, you must ensure that the property matches your platform, i.e. WindowsTerminal on Windows and UnixTerminal on Unix.
If this does not help, you may find yourself on an unsupported platform, in which case the website suggests using:
-Djline.terminal=jline.UnsupportedTerminal
weberste Nov 24 '10 at 16:32 2010-11-24 16:32
source share