Skip to content

jline3 example missing AnsiConsole.systemUninstall() #1165

@dwalluck

Description

@dwalluck

performs systemInstall(), but not systemUninstall().

However, from

if (isWindows && !Ansi.AUTO.enabled()) {
I have to question whether these lines are even necessary anymore on anything other than Windows. And Windows 10 I believe has native ANSI support.

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).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions