-
Notifications
You must be signed in to change notification settings - Fork 446
Closed
Labels
Milestone
Description
picocli/picocli-shell-jline3/src/test/java/picocli/shell/jline3/example/Example.java
Line 152 in 466975a
| AnsiConsole.systemInstall(); |
systemInstall(), but not systemUninstall().
However, from
| if (isWindows && !Ansi.AUTO.enabled()) { |
In fact, I had recently tried the logback feature that enabled ANSIConsole <withJansi>true</withJansi> and it just seemed to break the output under Cygwin rather than help.
Do you happen to know if it's safe to just leave these lines out entirely? Should we still be using them, but make it conditional on some Windows version? In most cases, I think we would try to place the uninstall in a finally block to make sure it is called (as I think an improper uninstall may mess up the I/O streams for future calls).