Class TerminalPanel
java.lang.Object
org.springframework.shell.test.jediterm.terminal.ui.TerminalPanel
- All Implemented Interfaces:
TerminalDisplay
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intprotected intstatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidbeep()voidprotected voidclearBuffer(boolean keepLastLine) voiddispose()intprotected intintintintvoidscrollArea(int scrollRegionTop, int scrollRegionSize, int dy) voidsetBracketedPasteMode(boolean enabled) voidsetCoordAccessor(TerminalCoordinates coordAccessor) voidsetTerminalPanelListener(TerminalPanelListener terminalPanelListener) voidsetTerminalStarter(TerminalStarter terminalStarter) voidsetWindowTitle(String name)
-
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
-
TerminalPanel
-
-
Method Details
-
getTerminalPanelListener
-
setCoordAccessor
-
setTerminalStarter
-
setTerminalPanelListener
-
getPixelWidth
public int getPixelWidth() -
getPixelHeight
public int getPixelHeight() -
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTerminalDisplay
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTerminalDisplay
-
getWindowTitle
- Specified by:
getWindowTitlein interfaceTerminalDisplay
-
getInsetX
protected int getInsetX() -
scrollArea
public void scrollArea(int scrollRegionTop, int scrollRegionSize, int dy) - Specified by:
scrollAreain interfaceTerminalDisplay
-
beep
public void beep()- Specified by:
beepin interfaceTerminalDisplay
-
getTerminalTextBuffer
-
ambiguousCharsAreDoubleWidth
public boolean ambiguousCharsAreDoubleWidth()- Specified by:
ambiguousCharsAreDoubleWidthin interfaceTerminalDisplay
-
setBracketedPasteMode
public void setBracketedPasteMode(boolean enabled) - Specified by:
setBracketedPasteModein interfaceTerminalDisplay
-
getScrollBuffer
-
getTerminalOutputStream
-
setWindowTitle
- Specified by:
setWindowTitlein interfaceTerminalDisplay
-
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()
-