Package com.aspectran.shell.console
Interface ShellConsole
- All Known Implementing Classes:
AbstractShellConsole,DefaultShellConsole,JLineShellConsole,ShellConsoleWrapper
public interface ShellConsole
The Interface for Console I/O.
Created: 2017. 3. 5.
- Since:
- 4.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbooleanbooleanvoidString[]String[]String[]String[]String[]String[]booleanhasStyle()voidbooleanreadLine()readLine(PromptStringBuilder promptStringBuilder) readPassword(PromptStringBuilder promptStringBuilder) voidvoidvoidresetStyle(String... styles) voidvoidsetCommandHistoryFile(String historyFile) voidsetCommandPrompt(String commandPrompt) voidsetConsoleCommander(ConsoleCommander runner) voidsetShellStyleConfig(ShellStyleConfig shellStyleConfig) voidvoidsetWorkingDir(File workingDir) voidvoidvoidvoidvoidwriteAbove(String str) voidwriteError(String str) voidwriteError(String format, Object... args) voidvoidvoid
-
Field Details
-
DEFAULT_PROMPT
- See Also:
-
MULTILINE_PROMPT
- See Also:
-
COMMENT_PROMPT
- See Also:
-
MULTILINE_DELIMITER
- See Also:
-
COMMENT_DELIMITER
- See Also:
-
MASK_CHAR
static final char MASK_CHAR- See Also:
-
-
Method Details
-
getEncoding
String getEncoding() -
getOutput
PrintStream getOutput() -
getWriter
PrintWriter getWriter() -
getWorkingDir
File getWorkingDir() -
setWorkingDir
-
getConsoleCommander
ConsoleCommander getConsoleCommander() -
setConsoleCommander
-
setCommandHistoryFile
-
getCommandHistory
-
clearCommandHistory
void clearCommandHistory() -
getCommandPrompt
String getCommandPrompt() -
setCommandPrompt
-
newPromptStringBuilder
PromptStringBuilder newPromptStringBuilder() -
readCommandLine
String readCommandLine() -
readLine
String readLine() -
readLine
-
readPassword
String readPassword() -
readPassword
-
write
-
write
-
writeLine
-
writeLine
-
writeLine
void writeLine() -
writeError
-
writeError
-
writeAbove
-
clearScreen
void clearScreen() -
clearLine
void clearLine() -
redrawLine
void redrawLine() -
isReading
boolean isReading() -
hasStyle
boolean hasStyle() -
setStyle
-
resetStyle
void resetStyle() -
resetStyle
-
setShellStyleConfig
-
getPrimaryStyle
String[] getPrimaryStyle() -
getSecondaryStyle
String[] getSecondaryStyle() -
getSuccessStyle
String[] getSuccessStyle() -
getDangerStyle
String[] getDangerStyle() -
getWarningStyle
String[] getWarningStyle() -
getInfoStyle
String[] getInfoStyle() -
secondaryStyle
void secondaryStyle() -
successStyle
void successStyle() -
dangerStyle
void dangerStyle() -
warningStyle
void warningStyle() -
infoStyle
void infoStyle() -
confirmRestart
boolean confirmRestart() -
confirmQuit
boolean confirmQuit()
-