HostCommandAdapter
Production bridge from parser semantic commands to the terminal core.
The parser owns byte/protocol decoding. The core owns grid mutation, mode state, cursor physics, and width policy. This adapter is the narrow place where ANSI/DEC mode ids become concrete core API calls.
Parameters
public core buffer API mutated by parser semantic commands.
optional sink for accepted host metadata and requests.
safety limits for host-owned metadata.
progressive Kitty keyboard flags the active input host can provide truthfully. The value must be a subset of the input encoder's implemented protocol mask.
Constructors
Properties
Functions
Current decoded-byte budget for collecting larger OSC 52 writes. Denied writes return zero, retaining the parser's ordinary envelope bound and small-request auditing. This does not authorize execution: requestClipboard rechecks the current policy.
Returns the latest valid OSC 7 current-working-directory URI.
Returns the OSC 8 URI associated with hyperlinkId, or null.
Updates the active host security policy dynamically.
Applies a host-selected theme and publishes an effective palette change. Unlike application OSC controls, this operation is not gated by host policy. The caller must serialize it with parser/core mutations.