Class TerminalPanel
java.lang.Object
org.springframework.shell.test.jediterm.terminal.ui.TerminalPanel
- All Implemented Interfaces:
TerminalDisplay
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected int
protected int
static final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
beep()
void
protected void
clearBuffer
(boolean keepLastLine) void
dispose()
int
protected int
int
int
int
void
scrollArea
(int scrollRegionTop, int scrollRegionSize, int dy) void
setBracketedPasteMode
(boolean enabled) void
setCoordAccessor
(TerminalCoordinates coordAccessor) void
setTerminalPanelListener
(TerminalPanelListener terminalPanelListener) void
setTerminalStarter
(TerminalStarter terminalStarter) void
setWindowTitle
(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:
getColumnCount
in interfaceTerminalDisplay
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTerminalDisplay
-
getWindowTitle
- Specified by:
getWindowTitle
in interfaceTerminalDisplay
-
getInsetX
protected int getInsetX() -
scrollArea
public void scrollArea(int scrollRegionTop, int scrollRegionSize, int dy) - Specified by:
scrollArea
in interfaceTerminalDisplay
-
beep
public void beep()- Specified by:
beep
in interfaceTerminalDisplay
-
getTerminalTextBuffer
-
ambiguousCharsAreDoubleWidth
public boolean ambiguousCharsAreDoubleWidth()- Specified by:
ambiguousCharsAreDoubleWidth
in interfaceTerminalDisplay
-
setBracketedPasteMode
public void setBracketedPasteMode(boolean enabled) - Specified by:
setBracketedPasteMode
in interfaceTerminalDisplay
-
getScrollBuffer
-
getTerminalOutputStream
-
setWindowTitle
- Specified by:
setWindowTitle
in 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()
-