Class NJLineTerminal
java.lang.Object
net.thevpc.nuts.spi.NSystemTerminalBaseImpl
net.thevpc.nuts.ext.term.NJLineTerminal
- All Implemented Interfaces:
NComponent,NSystemTerminalBase,NScorable
Created by vpc on 2/20/17.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.thevpc.nuts.spi.NSystemTerminalBase
NSystemTerminalBase.Cursor, NSystemTerminalBase.Size -
Field Summary
Fields inherited from interface net.thevpc.nuts.util.NScorable
CUSTOM_SCORE, DEFAULT_SCORE, UNSUPPORTED_SCORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()getErr()getIn()getOut()intgetScore(NScorableContext criteria) booleanvoidprepare()readLine(NPrintStream out, NMsg message) char[]readPassword(NPrintStream out, NMsg message) run(NTerminalCmd command, NPrintStream printStream) setCommandAutoCompleteResolver(NCmdLineAutoCompleteResolver autoCompleteResolver) setCommandHighlighter(String commandHighlighter) setCommandHistory(NCmdLineHistory history) voidsetStyles(NTextStyles styles, NPrintStream printStream) Methods inherited from class net.thevpc.nuts.spi.NSystemTerminalBaseImpl
clearScreen, getTerminalCursor, getTerminalSize, resetLine
-
Constructor Details
-
NJLineTerminal
public NJLineTerminal()
-
-
Method Details
-
prepare
public void prepare() -
close
protected void close() -
getScore
-
readLine
-
readPassword
-
getIn
-
getOut
-
getErr
-
getAutoCompleteResolver
-
isAutoCompleteSupported
public boolean isAutoCompleteSupported() -
setCommandAutoCompleteResolver
public NJLineTerminal setCommandAutoCompleteResolver(NCmdLineAutoCompleteResolver autoCompleteResolver) -
getCommandHistory
-
setCommandHistory
-
getCommandHighlighter
-
setCommandHighlighter
-
run
-
setStyles
-