Class JLineTerminal


  • public class JLineTerminal
    extends java.lang.Object
    Console I/O implementation that supports JLine.

    Created: 2017. 3. 4.

    • Constructor Detail

      • JLineTerminal

        public JLineTerminal​(ShellConsole console)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • JLineTerminal

        public JLineTerminal​(ShellConsole console,
                             java.lang.String encoding)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getTerminal

        public org.jline.terminal.Terminal getTerminal()
      • isDumb

        protected boolean isDumb()
      • isDumbColor

        protected boolean isDumbColor()
      • getReader

        public org.jline.reader.LineReader getReader()
      • getCommandReader

        public org.jline.reader.LineReader getCommandReader()
      • setCommandHistoryFile

        public void setCommandHistoryFile​(java.lang.String historyFile)
      • getCommandHistory

        public java.util.List<java.lang.String> getCommandHistory()
      • clearCommandHistory

        public void clearCommandHistory()
      • clearScreen

        public void clearScreen()
      • clearLine

        public void clearLine()
      • redrawLine

        public void redrawLine()
      • getOutput

        public java.io.OutputStream getOutput()
      • getWriter

        public java.io.PrintWriter getWriter()
      • isReading

        public boolean isReading()
      • toAnsi

        public java.lang.String toAnsi​(java.lang.String str)
      • hasStyle

        public boolean hasStyle()
      • setStyle

        public void setStyle​(java.lang.String... styles)
      • resetStyle

        public void resetStyle​(java.lang.String... styles)