Package jexer.terminal
Interface TerminalListener
-
- All Known Implementing Classes:
TTerminal,TTextPicture
public interface TerminalListenerTerminalListener is used to callback into external UI when the terminal state has changed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClipboardgetClipboard()Get the system clipboard to use for OSC 52.intgetDisplayHeight()Function to call to obtain the external UI display height.intgetDisplayWidth()Function to call to obtain the external UI display width.voidpostUpdate(TerminalState terminalState)Function to call when the terminal state has updated.
-
-
-
Method Detail
-
postUpdate
void postUpdate(TerminalState terminalState)
Function to call when the terminal state has updated.- Parameters:
terminalState- the new (now current) terminal state
-
getDisplayWidth
int getDisplayWidth()
Function to call to obtain the external UI display width.- Returns:
- the number of columns in the display
-
getDisplayHeight
int getDisplayHeight()
Function to call to obtain the external UI display height.- Returns:
- the number of rows in the display
-
getClipboard
Clipboard getClipboard()
Get the system clipboard to use for OSC 52.- Returns:
- the clipboard
-
-