TerminalWorkspace

Host-neutral workspace that owns local terminal tabs and sessions.

UI products adapt this model to visual containers such as Swing tabs or IDE tool-window contents. This class does not know about UI widgets, painting, input events, or platform actions.

Constructors

Link copied to clipboard
constructor(listener: TerminalWorkspaceListener = TerminalWorkspaceListener.NONE)

Creates a workspace backed by local PTY sessions.

Functions

Link copied to clipboard
fun applySettings(palette: TerminalColorPalette, treatAmbiguousAsWide: Boolean)

Applies host settings that are shared across all open sessions.

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun closeTab(id: String)

Closes an existing tab and its session.

Link copied to clipboard

Opens a new local PTY-backed tab.

Link copied to clipboard

Returns the currently selected tab, or null when no tabs are open.

Link copied to clipboard
fun selectTab(id: String)

Selects an existing tab.

Link copied to clipboard

Returns a stable snapshot of currently open tabs.