Class JLineIO
java.lang.Object
dev.enola.common.linereader.jline.JLineIO
- All Implemented Interfaces:
IO,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionJLineIO()JLineIO(Map<String, String> env, org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, org.jline.reader.Completer completer, ImmutableMap<String, org.jline.console.CmdDesc> tailTips, @Nullable Function<org.jline.console.CmdLine, org.jline.console.CmdDesc> descFun, boolean disableEventExpansion) Constructor. -
Method Summary
-
Constructor Details
-
JLineIO
- Throws:
IOException
-
JLineIO
public JLineIO(Map<String, String> env, org.jline.terminal.Terminal terminal, org.jline.reader.Parser parser, org.jline.reader.Completer completer, ImmutableMap<String, org.jline.console.CmdDesc> tailTips, @Nullable Function<org.jline.console.CmdLine, org.jline.console.CmdDesc> descFun, boolean disableEventExpansion) Constructor.- Parameters:
terminal- the Terminalparser- the Parsercompleter- the CompleterdisableEventExpansion- whether to disable special handling of magic history expansion commands like "!" and "!!" and "!n" and "!-n" and "!string" and "^string1^string2".
-
-
Method Details
-
readLine
-
readLine
-
printf
-
ctx
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
terminal
-
lineReader
-