KetraTerm
API · DevelopmentAll versions

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. One controlling view per session is supported: settings, grid dimensions, and the published viewport belong to the session. Binding multiple components does not create independently configured or independently scrolling views.

Component state belongs to the Swing Event Dispatch Thread (EDT). Access it on the EDT unless a method explicitly documents another threading contract. Snapshot access and dispatch to the EDT are specified by each public method.

Component or font/settings changes that resize the bound session's grid clear selection and stop selection dragging. Selection uses physical cell coordinates; unchanged grid dimensions preserve it.

After closure, the view preserves the final grid, active buffer, palette, and selection. Width changes clip columns without reflow. Height changes show a bottom-anchored window over retained rows. Scrolling includes grid rows hidden above a shorter view. Font changes affect only presentation. No transport work or session restart occurs.

A focused terminal paints the application's cursor shape and blink state. Without keyboard focus blocks become steady outlines; bars and underlines stay steady, preserving application cursor visibility and viewport clipping. Focus never changes the session's cursor style.

Parameters

settingsProvider

provider for immutable settings snapshots.

hostServices

host-provided non-render services.

Constructors

Link copied to clipboard
constructor(settingsProvider: SwingSettingsProvider = SwingSettingsProvider { SwingSettings() }, hostServices: SwingHostServices = SwingHostServices())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(description = "The preferred horizontal alignment of the component.")
open var alignmentX: Float
Link copied to clipboard
@set:BeanProperty(description = "The preferred vertical alignment of the component.")
open var alignmentY: Float
Link copied to clipboard
@get:BeanProperty(bound = false)
open val ancestorListeners: Array<out AncestorListener?>?
Link copied to clipboard
@set:BeanProperty(bound = false, expert = true, description = "Determines if this component automatically scrolls its contents when dragged.")
open var autoscrolls: Boolean
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The background color of the component.")
open var background: Color?
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The component's border.")
open var border: Border?
Link copied to clipboard
open var bounds: Rectangle?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(preferred = true, description = "Popup to show")
open var componentPopupMenu: JPopupMenu?
Link copied to clipboard
open val components: Array<out Component?>?
Link copied to clipboard
Link copied to clipboard
open var cursor: Cursor?
Link copied to clipboard
@set:BeanProperty(bound = false, preferred = true, enumerationValues = ["DebugGraphics.NONE_OPTION", "DebugGraphics.LOG_OPTION", "DebugGraphics.FLASH_OPTION", "DebugGraphics.BUFFERED_OPTION"], description = "Diagnostic options for graphics operations.")
open var debugGraphicsOptions: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The font for the component.")
open var font: Font?
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The foreground color of the component.")
open var foreground: Color?
Link copied to clipboard
@get:BeanProperty(bound = false)
open val graphics: Graphics?
Link copied to clipboard

Whether a configured suggestion provider is available. Read on the EDT.

Link copied to clipboard
@get:BeanProperty(bound = false)
open val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(description = "Whether or not the JPopupMenu is inherited")
open var inheritsPopupMenu: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(description = "The component's input verifier.")
open var inputVerifier: InputVerifier?
Link copied to clipboard
@get:BeanProperty(expert = true)
open val insets: Insets?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(expert = true, preferred = true, visualUpdate = true, description = "The enabled state of the component.")
open var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isFontSet: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:BeanProperty(bound = false)
open val isManagingFocus: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(expert = true, description = "The component's opacity")
open var isOpaque: Boolean
Link copied to clipboard
@get:BeanProperty(bound = false)
open val isOptimizedDrawingEnabled: Boolean
Link copied to clipboard
@get:BeanProperty(bound = false)
val isPaintingForPrint: Boolean
Link copied to clipboard
@get:BeanProperty(bound = false)
open val isPaintingTile: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isShowing: Boolean
Link copied to clipboard
open val isValid: Boolean
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(hidden = true, visualUpdate = true)
open var isVisible: Boolean
Link copied to clipboard
open val keyListeners: Array<out KeyListener?>?
Link copied to clipboard
Link copied to clipboard
open var locale: Locale?
Link copied to clipboard
open var location: Point?
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(description = "The maximum size of the component.")
open var maximumSize: Dimension?
Link copied to clipboard
@set:BeanProperty(description = "The minimum size of the component.")
open var minimumSize: Dimension?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val mousePosition: Point?
Link copied to clipboard
Link copied to clipboard
open var name: String?
Link copied to clipboard
Link copied to clipboard
open val parent: Container?
Link copied to clipboard
@set:BeanProperty(preferred = true, description = "The preferred size of the component.")
open var preferredSize: Dimension?
Link copied to clipboard
@get:BeanProperty(bound = false)
open val registeredKeyStrokes: Array<out KeyStroke?>?
Link copied to clipboard
@get:BeanProperty(bound = false)
open val rootPane: JRootPane?
Link copied to clipboard

Immutable search state, safe to observe from any thread. UI collectors must use the EDT and cancel collection when their view closes. Counts describe the last completed pass; TerminalSearchState.isSearching marks pending work. Clearing or unbinding cancels obsolete work; disposing cancels the worker.

Link copied to clipboard
open var size: Dimension?
Link copied to clipboard
open val toolkit: Toolkit?
Link copied to clipboard
@set:BeanProperty(bound = false, preferred = true, description = "The text to display in a tool tip.")
open var toolTipText: String?
Link copied to clipboard
@get:BeanProperty(bound = false)
open val topLevelAncestor: Container?
Link copied to clipboard
@set:BeanProperty(hidden = true, description = "Mechanism for transfer of data to and from the component")
open var transferHandler: TransferHandler?
Link copied to clipboard
Link copied to clipboard
open var ui: ComponentUI?
Link copied to clipboard
@get:BeanProperty(bound = false, expert = true, description = "UIClassID")
open val uiClassID: String?
Link copied to clipboard
@set:BeanProperty(description = "Whether the Component verifies input before accepting focus.")
open var verifyInputWhenFocusTarget: Boolean
Link copied to clipboard
Link copied to clipboard
@get:BeanProperty(bound = false)
open val visibleRect: Rectangle?
Link copied to clipboard
@get:BeanProperty(bound = false)
open val width: Int
Link copied to clipboard
@get:BeanProperty(bound = false)
open val x: Int
Link copied to clipboard
@get:BeanProperty(bound = false)
open val y: Int

Functions

Link copied to clipboard
open fun action(evt: Event?, what: Any?): Boolean
Link copied to clipboard
open fun add(popup: PopupMenu?)
open fun add(comp: Component?): Component?
open fun add(comp: Component?, constraints: Any?)
open fun add(comp: Component?, index: Int): Component?
open fun add(name: String?, comp: Component?): Component?
open fun add(comp: Component?, constraints: Any?, index: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun addNotify()
Link copied to clipboard
Link copied to clipboard

Registers a synchronous EDT observer without an initial callback.

Link copied to clipboard

Registers an EDT callback for automatic-suggestion eligibility changes.

Link copied to clipboard

Registers an EDT callback for shell-bound input invalidation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun beginActiveShellSuggestionInteraction(trigger: SwingShellSuggestionTrigger = SwingShellSuggestionTrigger.EXPLICIT, feedbackHandler: SwingShellSuggestionFeedbackHandler = SwingShellSuggestionFeedbackHandler.NONE, editTarget: SwingShellSuggestionEditTarget? = null): SwingShellSuggestionInteraction?

Captures the bound session's authoritative command line on the EDT, without mounting a popup.

Link copied to clipboard
fun beginShellSuggestionInteraction(request: SwingShellSuggestionRequest, trigger: SwingShellSuggestionTrigger = SwingShellSuggestionTrigger.EXPLICIT, feedbackHandler: SwingShellSuggestionFeedbackHandler = SwingShellSuggestionFeedbackHandler.NONE, editTarget: SwingShellSuggestionEditTarget? = null): SwingShellSuggestionInteraction?

Captures one command-line editing capability before asynchronous provider work.

Link copied to clipboard
fun bind(session: TerminalSession, onComplete: (Throwable?) -> Unit = mutationFailureHandler)

Binds rendering and input to the host-owned session.

Link copied to clipboard
open fun bounds(): Rectangle?
Link copied to clipboard
open fun checkImage(image: Image?, observer: ImageObserver?): Int
open fun checkImage(image: Image?, width: Int, height: Int, observer: ImageObserver?): Int
Link copied to clipboard

Requests a foreground-program screen clear/redraw.

Link copied to clipboard

Clears the current terminal-buffer search query and highlights.

Link copied to clipboard

Clears selection and stops mouse dragging on the EDT.

Link copied to clipboard
fun commandOutputText(recordId: Int): String?

Returns all currently retained output for recordId.

Link copied to clipboard
fun commandRecordAt(x: Int, y: Int): Int

Returns the command record at component coordinates x, y.

Link copied to clipboard
open fun computeVisibleRect(visibleRect: Rectangle?)
Link copied to clipboard
open operator fun contains(p: Point?): Boolean
open fun contains(x: Int, y: Int): Boolean
Link copied to clipboard
fun copyCellBounds(column: Int, row: Int, destination: Rectangle): Boolean

Copies a displayed cell's visible bounds into caller-owned storage on the EDT.

Link copied to clipboard
fun copyCellPositionAt(x: Int, y: Int, destination: Point): Boolean

Copies the displayed cell under component-local Swing pixels x, y into caller-owned destination on the EDT.

Link copied to clipboard

Copies all retained output for recordId through the host clipboard service.

Link copied to clipboard

Copies captured command text for recordId through the host clipboard service.

Link copied to clipboard

Copies the current terminal text selection to the host clipboard.

Link copied to clipboard

Writes host-approved text to the configured clipboard service.

Link copied to clipboard
open fun countComponents(): Int
Link copied to clipboard
open fun createImage(producer: ImageProducer?): Image?
open fun createImage(width: Int, height: Int): Image?
Link copied to clipboard
fun createSelectionRange(anchorColumn: Int, anchorAbsoluteRow: Long, caretColumn: Int, caretAbsoluteRow: Long, isBlock: Boolean = false): TerminalSelectionRange?

Creates a range in the current binding and layout without changing selection.

Link copied to clipboard
open fun createToolTip(): JToolTip?
Link copied to clipboard
open fun createVolatileImage(width: Int, height: Int): VolatileImage?
open fun createVolatileImage(width: Int, height: Int, caps: ImageCapabilities?): VolatileImage?
Link copied to clipboard

Returns the current search result snapshot.

Link copied to clipboard

Returns the current visible cell selection, or null when nothing is selected. Linear selection columns are logical; block selection columns are visual, as defined by CellSelection.

Link copied to clipboard

Returns the complete retained selection on the EDT, or null.

Link copied to clipboard

Returns the current shell suggestion popup state.

Link copied to clipboard
open fun deliverEvent(e: Event?)
Link copied to clipboard
open fun disable()
Link copied to clipboard
Link copied to clipboard
fun dispose()

Permanently releases UI-side resources owned by this terminal component.

Link copied to clipboard
open override fun doLayout()
Link copied to clipboard
open fun enable()
open fun enable(b: Boolean)
Link copied to clipboard
open fun enableInputMethods(enable: Boolean)
Link copied to clipboard
open fun findComponentAt(x: Int, y: Int): Component?
Link copied to clipboard
open fun firePropertyChange(propertyName: String?, oldValue: Boolean, newValue: Boolean)
open fun firePropertyChange(propertyName: String?, oldValue: Byte, newValue: Byte)
open fun firePropertyChange(propertyName: String?, oldValue: Char, newValue: Char)
open fun firePropertyChange(propertyName: String?, oldValue: Double, newValue: Double)
open fun firePropertyChange(propertyName: String?, oldValue: Float, newValue: Float)
open fun firePropertyChange(propertyName: String?, oldValue: Int, newValue: Int)
open fun firePropertyChange(propertyName: String?, oldValue: Long, newValue: Long)
open fun firePropertyChange(propertyName: String?, oldValue: Short, newValue: Short)
Link copied to clipboard
Link copied to clipboard
open fun getBaseline(width: Int, height: Int): Int
Link copied to clipboard
open fun getBounds(rv: Rectangle?): Rectangle?
Link copied to clipboard
Link copied to clipboard
open fun getComponent(n: Int): Component?
Link copied to clipboard
open fun getComponentAt(x: Int, y: Int): Component?
Link copied to clipboard
open fun getComponentZOrder(comp: Component?): Int
Link copied to clipboard
open fun getConditionForKeyStroke(aKeyStroke: KeyStroke?): Int
Link copied to clipboard
Link copied to clipboard
open fun getFontMetrics(font: Font?): FontMetrics?
Link copied to clipboard
open fun <T : EventListener?> getListeners(listenerType: Class<T?>?): Array<out T?>?
Link copied to clipboard
open fun getLocation(rv: Point?): Point?
Link copied to clipboard
open fun getMousePosition(allowChildren: Boolean): Point?
Link copied to clipboard
open fun getPopupLocation(event: MouseEvent?): Point?
Link copied to clipboard
open fun getSize(rv: Dimension?): Dimension?
Link copied to clipboard
open fun getToolTipLocation(event: MouseEvent?): Point?
Link copied to clipboard
open fun gotFocus(evt: Event?, what: Any?): Boolean
Link copied to clipboard
open fun grabFocus()
Link copied to clipboard
open fun handleEvent(evt: Event?): Boolean
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hide()
Link copied to clipboard

Hides the shell suggestion popup.

Link copied to clipboard
open fun imageUpdate(img: Image?, infoflags: Int, x: Int, y: Int, w: Int, h: Int): Boolean
Link copied to clipboard
open fun insets(): Insets?
Link copied to clipboard
open fun inside(x: Int, y: Int): Boolean
Link copied to clipboard
open fun invalidate()
Link copied to clipboard
Link copied to clipboard

Returns whether automatic suggestions are enabled at the live viewport.

Link copied to clipboard
open fun keyDown(evt: Event?, key: Int): Boolean
Link copied to clipboard
open fun keyUp(evt: Event?, key: Int): Boolean
Link copied to clipboard
open fun layout()
Link copied to clipboard
open fun list()
open fun list(out: PrintStream?)
open fun list(out: PrintWriter?)
open fun list(out: PrintStream?, indent: Int)
open fun list(out: PrintWriter?, indent: Int)
Link copied to clipboard
open fun locate(x: Int, y: Int): Component?
Link copied to clipboard
open fun location(): Point?
Link copied to clipboard
open fun lostFocus(evt: Event?, what: Any?): Boolean
Link copied to clipboard
open fun minimumSize(): Dimension?
Link copied to clipboard
open fun mouseDown(evt: Event?, x: Int, y: Int): Boolean
Link copied to clipboard
open fun mouseDrag(evt: Event?, x: Int, y: Int): Boolean
Link copied to clipboard
open fun mouseEnter(evt: Event?, x: Int, y: Int): Boolean
Link copied to clipboard
open fun mouseExit(evt: Event?, x: Int, y: Int): Boolean
Link copied to clipboard
open fun mouseMove(evt: Event?, x: Int, y: Int): Boolean
Link copied to clipboard
open fun mouseUp(evt: Event?, x: Int, y: Int): Boolean
Link copied to clipboard
open fun move(x: Int, y: Int)
Link copied to clipboard
open fun nextFocus()
Link copied to clipboard
open fun paint(g: Graphics?)
Link copied to clipboard
open fun paintAll(g: Graphics?)
Link copied to clipboard
Link copied to clipboard
open fun paintImmediately(x: Int, y: Int, w: Int, h: Int)
Link copied to clipboard

Pastes text from the host clipboard into the active terminal session.

Link copied to clipboard

Pastes supplied text into the active terminal session without reading the clipboard.

Link copied to clipboard
open fun postEvent(e: Event?): Boolean
Link copied to clipboard
fun preferredGridSize(columns: Int, rows: Int, activeBuffer: TerminalRenderBufferKind = TerminalRenderBufferKind.PRIMARY): Dimension

Returns the component size in pixels for the requested grid and screen.

Link copied to clipboard
Link copied to clipboard
open fun prepareImage(image: Image?, observer: ImageObserver?): Boolean
open fun prepareImage(image: Image?, width: Int, height: Int, observer: ImageObserver?): Boolean
Link copied to clipboard
fun presentShellSuggestions(interaction: SwingShellSuggestionInteraction, anchorColumn: Int = suggestionAnchorColumn, anchorRow: Int = suggestionAnchorRow)

Mounts the standard embedded presentation for an already captured interaction on the EDT. Hosts using detached or native UI can consume the interaction directly instead. Placement belongs to this adapter and is independent of provider request data.

Link copied to clipboard
open fun print(g: Graphics?)
Link copied to clipboard
open fun printAll(g: Graphics?)
Link copied to clipboard
Link copied to clipboard
fun putClientProperty(key: Any?, value: Any?)
Link copied to clipboard

Invalidates automatic request deduplication after host ranking context changes. Call on the EDT. The next eligible automatic request runs after the normal debounce interval.

Link copied to clipboard
open fun registerKeyboardAction(anAction: ActionListener?, aKeyStroke: KeyStroke?, aCondition: Int)
open fun registerKeyboardAction(anAction: ActionListener?, aCommand: String?, aKeyStroke: KeyStroke?, aCondition: Int)
Link copied to clipboard

Applies changed settings, rebuilding geometry only when its inputs change.

Link copied to clipboard
open fun remove(comp: Component?)
open fun remove(index: Int)
open fun remove(popup: MenuComponent?)
Link copied to clipboard
open fun removeAll()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun removeNotify()
Link copied to clipboard

Removes a selection observer on the EDT.

Link copied to clipboard
open fun repaint()
open fun repaint(tm: Long)
open fun repaint(x: Int, y: Int, width: Int, height: Int)
open fun repaint(tm: Long, x: Int, y: Int, width: Int, height: Int)
open fun repaint(r: Rectangle?)
Link copied to clipboard
fun requestActiveShellSuggestions(trigger: SwingShellSuggestionTrigger = SwingShellSuggestionTrigger.EXPLICIT, editTarget: SwingShellSuggestionEditTarget? = null)

Queries and presents the bound session's active command line using the configured provider.

Link copied to clipboard
Link copied to clipboard
open fun requestFocus()
open fun requestFocus(cause: FocusEvent.Cause?)
open fun requestFocus(temporary: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard

Opens a source on the EDT and collects it off the EDT into an existing interaction. This does not mount UI. Its request-specific observer is captured before collection. Closing the interaction cancels collection; final visible results survive stream completion. Each interaction accepts one provider collection. Combine independent sources in the provider.

fun requestShellSuggestions(commandText: String, cursorOffset: Int, anchorColumn: Int, anchorRow: Int, trigger: SwingShellSuggestionTrigger = SwingShellSuggestionTrigger.AUTOMATIC, editTarget: SwingShellSuggestionEditTarget? = null)

Captures a host command line, mounts the standard popup, and queries the configured provider. Calls on the EDT take effect immediately; other calls dispatch asynchronously. Automatic requests respect the automatic-popup setting; explicit requests respect the master switch.

Link copied to clipboard
Link copied to clipboard
open fun reshape(x: Int, y: Int, w: Int, h: Int)
Link copied to clipboard
open fun resize(d: Dimension?)
open fun resize(width: Int, height: Int)
Link copied to clipboard
fun resizeSessionToVisibleGrid(onComplete: (Throwable?) -> Unit = mutationFailureHandler)

Schedules the current visible cell and pixel dimensions for the bound session.

Link copied to clipboard
open fun revalidate()
Link copied to clipboard
open override fun scrollFromScrollbar(scrollbackOffset: Int, valueIsAdjusting: Boolean)

Moves the viewport to scrollbackOffset terminal rows above live output.

Link copied to clipboard
open fun scrollRectToVisible(aRect: Rectangle?)
Link copied to clipboard

Returns to the live terminal viewport.

Link copied to clipboard

Scrolls to the nearest next shell command.

Link copied to clipboard

Scrolls to the nearest previous shell command.

Link copied to clipboard
fun scrollToScrollbackOffset(scrollbackOffset: Int)

Scrolls to an absolute scrollback offset.

Link copied to clipboard
fun scrollViewportBy(deltaLines: Double)

Applies a signed scrollback delta in presentation slots.

Link copied to clipboard
fun search(query: String)

Schedules a cancellable background search (literal by default). This does not wait for results.

Link copied to clipboard

Selects all retained terminal text.

Link copied to clipboard

Selects command output for recordId.

Link copied to clipboard

Selects command output for the command under component coordinates x, y.

Link copied to clipboard

Returns the complete retained selection's text on the EDT, or null when unavailable.

Link copied to clipboard

Selects the next search result when a search query is active. While searching, navigates the last completed pass; does nothing when no results are available.

Link copied to clipboard

Selects the previous search result when a search query is active. While searching, navigates the last completed pass; does nothing when no results are available.

Link copied to clipboard
open fun setComponentZOrder(comp: Component?, index: Int)
Link copied to clipboard
open fun setFocusTraversalKeys(id: Int, keystrokes: Set<out AWTKeyStroke?>?)
Link copied to clipboard
fun setHostPolicy(policy: HostPolicy, onComplete: (Throwable?) -> Unit = mutationFailureHandler)

Applies policy after previously accepted view settings and geometry changes.

Link copied to clipboard
fun setInputMap(condition: Int, map: InputMap?)
Link copied to clipboard
open fun setMixingCutoutShape(shape: Shape?)
Link copied to clipboard
fun setSearchCaseSensitive(caseSensitive: Boolean)

Configures whether terminal-buffer search is case-sensitive.

Link copied to clipboard

Enables Java regular expressions. Disabled by default; changing it restarts the current search. Patterns match one logical line at a time, including soft wraps, with trailing ASCII spaces trimmed. Empty matches are ignored. Invalid patterns are reported through searchState. Matching runs off the EDT and is cancellable. This setting survives clearSearch.

Link copied to clipboard
fun setSearchWholeWord(wholeWord: Boolean)

Requires word boundaries around matches. Disabled by default; changing it restarts the current search. Unicode letters, digits, combining marks, connector punctuation and join controls are word characters. Applies to both literal and regex searches; this setting survives clearSearch.

Link copied to clipboard

Sets or restores a complete range on the EDT.

Link copied to clipboard

Selects provider diagnostics for this view on the EDT; null restores logging.

Link copied to clipboard

Installs a host-owned provider or disables configured suggestions with null. Call on the EDT, before or after binding. Replacement cancels existing requests without closing either provider. The provider survives unbinding and rebinding; host metadata must describe the current session when SwingShellSuggestionProvider.open captures it. Automatic observation runs only while a session, provider or custom target, and the automatic-suggestion setting are available. Explicit custom interactions remain independent.

Link copied to clipboard

Routes automatic captured interactions to a host-owned surface; null selects embedded presentation. Call on the EDT. Replacement cancels pending requests and hides the old surface. The host owns target resources. Explicit interaction and presentation methods are unaffected.

Link copied to clipboard
open fun show()
open fun show(b: Boolean)
Link copied to clipboard

Triggers this component's visual bell indicator.

Link copied to clipboard
open fun size(): Dimension?
Link copied to clipboard
open fun transferFocus()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun unbind()

Removes the current session binding.

Link copied to clipboard
open fun unregisterKeyboardAction(aKeyStroke: KeyStroke?)
Link copied to clipboard
open fun update(g: Graphics?)
Link copied to clipboard
open fun updateUI()
Link copied to clipboard
open fun validate()
Link copied to clipboard

Returns the latest presentation scrollback viewport snapshot.

Link copied to clipboard

Returns the session grid size for this component's current bounds. Narrow bounds retain at least two columns and one row; painting clips to the component.