picocli
picocli copied to clipboard
Limited ANSI colors in PowerShell
When running the checksum
example, either as a Java process or as a native image, in PowerShell, only the command name checksum is highlighted in the usage help message. The rest of the message does not seem to use any of the ANSI colors and styles:
PS C:\Users\remko> .\checksum.exe
Missing required parameter: <file>
Usage: checksum [-hV] [-a=<algorithm>] <file>
Prints the checksum (MD5 by default) of a file to STDOUT.
<file> The file whose checksum to calculate.
-a, --algorithm=<algorithm>
MD5, SHA-1, SHA-256, ...
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
Debug output:
[picocli DEBUG] (ANSI is enabled by default: systemproperty[picocli.ansi]=null, isatty=true,
TERM=null, OSTYPE=null, isWindows=true, JansiConsoleInstalled=true, ANSICON=null,
ConEmuANSI=null, NO_COLOR=null, CLICOLOR=null, CLICOLOR_FORCE=null)