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 Details

  • Method Details

    • getEncoding

      String getEncoding()
    • getOutput

      PrintStream getOutput()
    • getWriter

      PrintWriter getWriter()
    • getWorkingDir

      File getWorkingDir()
    • setWorkingDir

      void setWorkingDir(File workingDir)
    • getConsoleCommander

      ConsoleCommander getConsoleCommander()
    • setConsoleCommander

      void setConsoleCommander(ConsoleCommander runner)
    • setCommandHistoryFile

      void setCommandHistoryFile(String historyFile)
    • getCommandHistory

      List<String> getCommandHistory()
    • clearCommandHistory

      void clearCommandHistory()
    • getCommandPrompt

      String getCommandPrompt()
    • setCommandPrompt

      void setCommandPrompt(String commandPrompt)
    • newPromptStringBuilder

      PromptStringBuilder newPromptStringBuilder()
    • readCommandLine

      String readCommandLine()
    • readLine

      String readLine()
    • readLine

      String readLine(PromptStringBuilder promptStringBuilder)
    • readPassword

      String readPassword()
    • readPassword

      String readPassword(PromptStringBuilder promptStringBuilder)
    • write

      void write(String str)
    • write

      void write(String format, Object... args)
    • writeLine

      void writeLine(String str)
    • writeLine

      void writeLine(String format, Object... args)
    • writeLine

      void writeLine()
    • writeError

      void writeError(String str)
    • writeError

      void writeError(String format, Object... args)
    • writeAbove

      void writeAbove(String str)
    • clearScreen

      void clearScreen()
    • clearLine

      void clearLine()
    • redrawLine

      void redrawLine()
    • isReading

      boolean isReading()
    • hasStyle

      boolean hasStyle()
    • setStyle

      void setStyle(String... styles)
    • resetStyle

      void resetStyle()
    • resetStyle

      void resetStyle(String... styles)
    • setShellStyleConfig

      void setShellStyleConfig(ShellStyleConfig shellStyleConfig)
    • 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()