Interface ITerminalConsole

All Superinterfaces:
HasElement, Serializable
All Known Implementing Classes:
XTerm

public interface ITerminalConsole extends HasElement
Add console support to XTerm. This provides handling of cursor, home/end, insert, delete and backspace keys, as well as a line event.
  • Method Details

    • addLineListener

      default Registration addLineListener(ComponentEventListener<ITerminalConsole.LineEvent> listener)
      Adds a line listener. The listener is called when a line feed is intered in the console.
    • setInsertMode

      default void setInsertMode(boolean insertMode)
      Set the insert mode.
    • getCurrentLine

      default CompletableFuture<String> getCurrentLine()
      Returns the text in the current line
    • setPrompt

      default void setPrompt(String prompt)
      Sets the command line prompt.
    • getPrompt

      default String getPrompt()
      Returns the command line prompt.
    • writePrompt

      default void writePrompt()
      Writes the command line prompt to the terminal.