From 83f6ef6cd20d36fbf70981d82035d8ef37f2fcc9 Mon Sep 17 00:00:00 2001 From: Marko Mackic Date: Sun, 17 Oct 2021 21:33:45 +0200 Subject: [PATCH] Revert "[#1397] Update Jline2 README.md to add some recommended workaround" This reverts commit 2a2fa854cee73db301a3ed8846f165b861e3cd27. --- picocli-shell-jline2/README.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/picocli-shell-jline2/README.md b/picocli-shell-jline2/README.md index b8da42f99..89d4cd2b0 100644 --- a/picocli-shell-jline2/README.md +++ b/picocli-shell-jline2/README.md @@ -155,16 +155,6 @@ public class Example { } public static void main(String[] args) { - - // JLine 2 does not detect some terminal as not ANSI compatible (e.g Eclipse Console) - // See : https://github.com/jline/jline2/issues/185 - // This is an optional workaround which allow to use picocli heuristic instead : - if (!Help.Ansi.AUTO.enabled() && // - Configuration.getString(TerminalFactory.JLINE_TERMINAL, TerminalFactory.AUTO).toLowerCase() - .equals(TerminalFactory.AUTO)) { - TerminalFactory.configure(Type.NONE); - } - try { ConsoleReader reader = new ConsoleReader(); IFactory factory = new CustomFactory(new InteractiveParameterConsumer(reader)); @@ -265,4 +255,4 @@ public class CustomFactory implements IFactory { } } -``` +``` \ No newline at end of file