Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
plexus-interactivity
plexus-interactivity-jline2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plexus-interactivity-jline2.patch of Package plexus-interactivity
diff --git a/plexus-interactivity-api/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java b/plexus-interactivity-api/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java index 93c8bd6..068a6e4 100644 --- a/plexus-interactivity-api/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java +++ b/plexus-interactivity-api/src/main/java/org/codehaus/plexus/components/interactivity/jline/JLineInputHandler.java @@ -28,9 +28,8 @@ import javax.inject.Named; import java.io.IOException; +import jline.console.ConsoleReader; import org.codehaus.plexus.components.interactivity.AbstractInputHandler; -import org.jline.reader.LineReader; -import org.jline.reader.LineReaderBuilder; /** * Default input handler, that uses the console. @@ -39,7 +38,16 @@ import org.jline.reader.LineReaderBuilder; */ @Named("jline") public class JLineInputHandler extends AbstractInputHandler { - private final LineReader consoleReader = LineReaderBuilder.builder().build(); + private final ConsoleReader consoleReader; + + public JLineInputHandler() { + ConsoleReader cr = null; + try { + cr = new ConsoleReader(); + } catch (IOException e) { + } + this.consoleReader = cr; + } public String readLine() throws IOException { return consoleReader.readLine();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor