Package net.hydromatic.morel
Class Shell.TerminalLineFn
- java.lang.Object
-
- net.hydromatic.morel.Shell.TerminalLineFn
-
- All Implemented Interfaces:
Shell.LineFn
- Enclosing class:
- Shell
private static class Shell.TerminalLineFn extends Object implements Shell.LineFn
Implementation ofShell.LineFnthat reads from JLine's terminal. It is used for interactive sessions.
-
-
Field Summary
Fields Modifier and Type Field Description private StringequalsPromptprivate org.jline.reader.LineReaderlineReaderprivate StringminusPrompt
-
Constructor Summary
Constructors Constructor Description TerminalLineFn(String minusPrompt, String equalsPrompt, org.jline.reader.LineReader lineReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<Shell.LineType,String>read(StringBuilder buf)
-
-
-
Method Detail
-
read
public Pair<Shell.LineType,String> read(StringBuilder buf)
- Specified by:
readin interfaceShell.LineFn
-
-