TerminalSession
Runtime terminal session that binds core, parser, input encoding, and a transport connector.
The connector owns transport threads. This session owns parser/core mutation serialization and all host-bound write ordering.
Constructors
Properties
Functions
Registers a listener that is invoked exactly once when this session reaches a terminal lifecycle state.
Registers a listener to be notified when the session needs a render repaint.
Returns the latest valid OSC 7 current-working-directory URI.
Encodes a focus event and writes it to the connector unless closed.
Encodes a mouse event and writes it to the connector unless closed.
Encodes a paste event and writes it to the connector unless closed.
Resolves a primitive render-frame hyperlink id to a target URI.
Submits a render task to the worker thread.
Reads a short-lived render frame while holding the terminal mutation lock.
Reads a render frame with a specified scrollback offset.
Reads a render frame with a specified scrollback offset and viewport rows limit.
Unregisters a previously registered session close listener.
Unregisters a previously registered render repaint listener.
Requests a render-cache publication for a caller-owned scrollback viewport.
Requests a render-cache publication with optional render-only viewport overscan rows.
Updates the current and default cursor shape for the session.
Updates the active host security policy dynamically.
Updates the active terminal input policy dynamically.
Updates only the active paste sanitization policy.
Sets the theme-configured color palette for the session.
Applies the host's East Asian Ambiguous width policy for future writes.