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 TypeMethodDescriptionvoid
void
void
boolean
boolean
void
String[]
String[]
String[]
String[]
String[]
String[]
boolean
hasStyle()
void
boolean
readLine()
readLine
(PromptStringBuilder promptStringBuilder) readPassword
(PromptStringBuilder promptStringBuilder) void
void
void
resetStyle
(String... styles) void
void
setCommandHistoryFile
(String historyFile) void
setCommandPrompt
(String commandPrompt) void
setConsoleCommander
(ConsoleCommander runner) void
setShellStyleConfig
(ShellStyleConfig shellStyleConfig) void
void
setWorkingDir
(File workingDir) void
void
void
void
void
writeAbove
(String str) void
writeError
(String str) void
writeError
(String format, Object... args) void
void
void
-
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()
-