public abstract class AbstractTerminal extends Object implements Terminal
Terminal.Color, Terminal.ResizeListener, Terminal.SGR
Constructor and Description |
---|
AbstractTerminal() |
Modifier and Type | Method and Description |
---|---|
void |
addResizeListener(Terminal.ResizeListener listener)
Adds a
ResizeListener to be called when the terminal has changed
size. |
protected TerminalSize |
getLastKnownSize()
Used internally to get the last size known to the terminal
|
protected void |
onResized(int columns,
int rows)
Call this method when the terminal has been resized or the initial size
of the terminal has been discovered.
|
void |
removeResizeListener(Terminal.ResizeListener listener)
Removes a
ResizeListener from the list of listeners to be notified
when the terminal has changed size |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyBackgroundColor, applyBackgroundColor, applyBackgroundColor, applyForegroundColor, applyForegroundColor, applyForegroundColor, applySGR, clearScreen, enterPrivateMode, exitPrivateMode, flush, getTerminalSize, moveCursor, putCharacter, queryTerminalSize, setCursorVisible
addInputProfile, readInput
public void addResizeListener(Terminal.ResizeListener listener)
Terminal
ResizeListener
to be called when the terminal has changed
size.addResizeListener
in interface Terminal
listener
- Listener object to be called when the terminal has been changedTerminal.ResizeListener
public void removeResizeListener(Terminal.ResizeListener listener)
Terminal
ResizeListener
from the list of listeners to be notified
when the terminal has changed sizeremoveResizeListener
in interface Terminal
listener
- Listener object to removeTerminal.ResizeListener
protected void onResized(int columns, int rows)
columns
- rows
- protected TerminalSize getLastKnownSize()
Copyright © 2015. All Rights Reserved.