java.lang.Object
org.springframework.shell.test.jediterm.terminal.ui.TerminalPanel
All Implemented Interfaces:
TerminalDisplay

public class TerminalPanel extends Object implements TerminalDisplay
  • Field Details

    • SCROLL_SPEED

      public static final double SCROLL_SPEED
      See Also:
    • myCharSizeWidth

      protected int myCharSizeWidth
    • myCharSizeHeight

      protected int myCharSizeHeight
    • myTermSizeWidth

      protected int myTermSizeWidth
    • myTermSizeHeight

      protected int myTermSizeHeight
    • myClientScrollOrigin

      protected int myClientScrollOrigin
  • Constructor Details

  • Method Details

    • getTerminalPanelListener

      public TerminalPanelListener getTerminalPanelListener()
    • setCoordAccessor

      public void setCoordAccessor(TerminalCoordinates coordAccessor)
    • setTerminalStarter

      public void setTerminalStarter(TerminalStarter terminalStarter)
    • setTerminalPanelListener

      public void setTerminalPanelListener(TerminalPanelListener terminalPanelListener)
    • getPixelWidth

      public int getPixelWidth()
    • getPixelHeight

      public int getPixelHeight()
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface TerminalDisplay
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface TerminalDisplay
    • getWindowTitle

      public String getWindowTitle()
      Specified by:
      getWindowTitle in interface TerminalDisplay
    • getInsetX

      protected int getInsetX()
    • scrollArea

      public void scrollArea(int scrollRegionTop, int scrollRegionSize, int dy)
      Specified by:
      scrollArea in interface TerminalDisplay
    • beep

      public void beep()
      Specified by:
      beep in interface TerminalDisplay
    • getTerminalTextBuffer

      public TerminalTextBuffer getTerminalTextBuffer()
    • ambiguousCharsAreDoubleWidth

      public boolean ambiguousCharsAreDoubleWidth()
      Specified by:
      ambiguousCharsAreDoubleWidth in interface TerminalDisplay
    • setBracketedPasteMode

      public void setBracketedPasteMode(boolean enabled)
      Specified by:
      setBracketedPasteMode in interface TerminalDisplay
    • getScrollBuffer

      public LinesBuffer getScrollBuffer()
    • getTerminalOutputStream

      public TerminalOutputStream getTerminalOutputStream()
    • setWindowTitle

      public void setWindowTitle(String name)
      Specified by:
      setWindowTitle in interface TerminalDisplay
    • clearBuffer

      public void clearBuffer()
    • clearBuffer

      protected void clearBuffer(boolean keepLastLine)
      Parameters:
      keepLastLine - true to keep last line (e.g. to keep terminal prompt) false to clear entire terminal panel (relevant for terminal console)
    • dispose

      public void dispose()