Class WebTerminal.WebTerminalComponent

java.lang.Object
org.jline.utils.ScreenTerminal
org.jline.builtins.WebTerminal.WebTerminalComponent
All Implemented Interfaces:
Sized
Enclosing class:
WebTerminal

public static class WebTerminal.WebTerminalComponent extends ScreenTerminal
The inner WebTerminalComponent that contains the original ScreenTerminal-based implementation. This is the inner class that contains the original ScreenTerminal-based implementation.
  • Constructor Details

    • WebTerminalComponent

      public WebTerminalComponent(int columns, int rows)
      Creates a new WebTerminalComponent with the specified dimensions.
      Parameters:
      columns - the number of columns
      rows - the number of rows
  • Method Details

    • setWebTerminal

      public void setWebTerminal(WebTerminal webTerminal)
      Sets the web terminal reference after construction to avoid this-escape issues.
      Parameters:
      webTerminal - the WebTerminal instance
    • write

      public boolean write(String text)
      Writes text to the terminal.
      Parameters:
      text - the text to write
      Returns:
      true if successful
    • pipe

      public String pipe(String input)
      Reads and processes input through the terminal. Delegates to the ScreenTerminal pipe method which handles all special key sequences and terminal modes.
      Overrides:
      pipe in class ScreenTerminal
      Parameters:
      input - the input to process
      Returns:
      the processed input
    • setSize

      @Deprecated public boolean setSize(int columns, int rows)
      Deprecated.
      Set the terminal size to the given columns and rows if they are within allowed bounds.
      Overrides:
      setSize in class ScreenTerminal
      Parameters:
      columns - the new number of columns; must be between 10 and 200 inclusive
      rows - the new number of rows; must be between 5 and 100 inclusive
      Returns:
      true if the size was applied, false if the provided dimensions are out of range