public abstract class AbstractSystemTerminalAdapter
extends net.thevpc.nuts.spi.NutsSystemTerminalBaseImpl
implements net.thevpc.nuts.NutsSystemTerminal
| Modifier and Type | Field and Description |
|---|---|
protected CProgressBar |
progressBar |
| Constructor and Description |
|---|
AbstractSystemTerminalAdapter() |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.NutsPrintStream |
err() |
net.thevpc.nuts.NutsCommandAutoCompleteResolver |
getAutoCompleteResolver() |
abstract net.thevpc.nuts.spi.NutsSystemTerminalBase |
getBase() |
String |
getCommandHighlighter() |
net.thevpc.nuts.NutsCommandHistory |
getCommandHistory() |
net.thevpc.nuts.NutsPrintStream |
getErr() |
InputStream |
getIn() |
net.thevpc.nuts.NutsPrintStream |
getOut() |
int |
getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext criteria) |
InputStream |
in() |
boolean |
isAutoCompleteSupported() |
net.thevpc.nuts.NutsPrintStream |
out() |
net.thevpc.nuts.NutsSystemTerminal |
printProgress(float progress,
net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session) |
String |
readLine(net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session) |
String |
readLine(net.thevpc.nuts.NutsPrintStream out,
net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session) |
char[] |
readPassword(net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session) |
char[] |
readPassword(net.thevpc.nuts.NutsPrintStream out,
net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session) |
Object |
run(net.thevpc.nuts.NutsTerminalCommand command,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.spi.NutsSystemTerminalBase |
setCommandAutoCompleteResolver(net.thevpc.nuts.NutsCommandAutoCompleteResolver autoCompleteResolver) |
net.thevpc.nuts.NutsSystemTerminal |
setCommandHighlighter(String commandHighlighter) |
net.thevpc.nuts.spi.NutsSystemTerminalBase |
setCommandHistory(net.thevpc.nuts.NutsCommandHistory history) |
void |
setStyles(net.thevpc.nuts.NutsTextStyles styles,
net.thevpc.nuts.NutsSession session) |
clearScreen, getTerminalCursor, getTerminalSize, resetLineprotected CProgressBar progressBar
public net.thevpc.nuts.NutsCommandAutoCompleteResolver getAutoCompleteResolver()
getAutoCompleteResolver in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic boolean isAutoCompleteSupported()
isAutoCompleteSupported in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic net.thevpc.nuts.spi.NutsSystemTerminalBase setCommandAutoCompleteResolver(net.thevpc.nuts.NutsCommandAutoCompleteResolver autoCompleteResolver)
setCommandAutoCompleteResolver in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic net.thevpc.nuts.spi.NutsSystemTerminalBase setCommandHistory(net.thevpc.nuts.NutsCommandHistory history)
setCommandHistory in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic net.thevpc.nuts.NutsCommandHistory getCommandHistory()
getCommandHistory in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic String readLine(net.thevpc.nuts.NutsMessage message, net.thevpc.nuts.NutsSession session)
readLine in interface net.thevpc.nuts.NutsSystemTerminalpublic char[] readPassword(net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session)
readPassword in interface net.thevpc.nuts.NutsSystemTerminalpublic InputStream in()
in in interface net.thevpc.nuts.NutsSystemTerminalpublic net.thevpc.nuts.NutsPrintStream out()
out in interface net.thevpc.nuts.NutsSystemTerminalpublic net.thevpc.nuts.NutsPrintStream err()
err in interface net.thevpc.nuts.NutsSystemTerminalpublic net.thevpc.nuts.NutsSystemTerminal printProgress(float progress,
net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session)
printProgress in interface net.thevpc.nuts.NutsSystemTerminalpublic int getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext criteria)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponentpublic String readLine(net.thevpc.nuts.NutsPrintStream out, net.thevpc.nuts.NutsMessage message, net.thevpc.nuts.NutsSession session)
readLine in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic char[] readPassword(net.thevpc.nuts.NutsPrintStream out,
net.thevpc.nuts.NutsMessage message,
net.thevpc.nuts.NutsSession session)
readPassword in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic InputStream getIn()
getIn in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic net.thevpc.nuts.NutsPrintStream getOut()
getOut in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic net.thevpc.nuts.NutsPrintStream getErr()
getErr in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic abstract net.thevpc.nuts.spi.NutsSystemTerminalBase getBase()
getBase in interface net.thevpc.nuts.NutsSystemTerminalpublic String getCommandHighlighter()
getCommandHighlighter in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic net.thevpc.nuts.NutsSystemTerminal setCommandHighlighter(String commandHighlighter)
setCommandHighlighter in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic Object run(net.thevpc.nuts.NutsTerminalCommand command, net.thevpc.nuts.NutsSession session)
run in interface net.thevpc.nuts.spi.NutsSystemTerminalBasepublic void setStyles(net.thevpc.nuts.NutsTextStyles styles,
net.thevpc.nuts.NutsSession session)
setStyles in interface net.thevpc.nuts.spi.NutsSystemTerminalBaseCopyright © 2022 vpc open source initiative. All rights reserved.