Skip to content

Commit

Permalink
Revert "[remkop#1397] Update Jline2 README.md to add some recommended…
Browse files Browse the repository at this point in the history
… workaround"

This reverts commit 2a2fa85.
  • Loading branch information
MarkoMackic committed Oct 17, 2021
1 parent 7b698a9 commit 83f6ef6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions picocli-shell-jline2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -265,4 +255,4 @@ public class CustomFactory implements IFactory {
}
}

```
```

0 comments on commit 83f6ef6

Please sign in to comment.