SwingTerminal
Reusable Swing terminal component.
The component consumes published render-cache snapshots from a TerminalSession and paints terminal rows without knowing which transport produced the bytes. Hosts own session creation, process lifecycle, and connector choice outside this component.
Parameters
provider for immutable settings snapshots.
host-provided non-render services.
Constructors
Properties
Functions
Binds this component to session.
Returns all currently retained output for recordId.
Copies all retained output for recordId through the host clipboard service.
Copies captured command text for recordId through the host clipboard service.
Copies the current terminal text selection to the host clipboard.
Writes host-approved text to the configured clipboard service.
Returns the current search UI and result snapshot.
Returns the current visible cell selection, or null when nothing is selected.
Returns the current shell suggestion popup state.
Hides the shell suggestion popup.
Pastes text from the host clipboard into the active terminal session.
Rebuilds settings, metrics, preferred size, and repaint state.
Requests shell suggestions from SwingHostServices.shellSuggestionProvider and shows the returned snapshot near a terminal-grid cell.
Moves the viewport to scrollbackOffset terminal rows above live output.
Returns to the live terminal viewport.
Scrolls to the nearest next shell command.
Scrolls to the nearest previous shell command.
Scrolls to an absolute scrollback offset.
Applies a signed scrollback delta in terminal rows.
Selects command output for recordId.
Shows host-provided shell suggestions near a terminal-grid cell.
Triggers this component's visual bell indicator.
Returns the latest terminal-native scrollback viewport snapshot.
Returns the grid size that fits in this component's current bounds.