Current grid and cell geometry.
Current authored theme. Missing properties inherit from DEFAULT_THEME.
Returns authoritative active-buffer metadata.
Clears the current text selection.
Releases the Ghostty handle and unregisters the terminal from its runtime.
Enables Kitty clipboard paste events and returns an idempotent registration.
Encodes a focus transition when focus reporting is enabled.
Returns selected content using the requested output format.
Returns whether an ANSI or DEC terminal mode is enabled.
Encodes a physical key input and emits resulting PTY bytes.
Subscribes to a typed headless terminal event.
Encodes pasted content, honoring bracketed-paste mode.
Applies user-initiated MIME data using Kitty paste events when mode 5522 is active.
Encodes a pointer action or updates terminal selection.
Reads a clamped page of active-buffer rows; defaults to the visible viewport.
Optionalrange: TerminalBufferRangeReads the current incremental render frame.
Resets Ghostty terminal state and invalidates the viewport.
Applies character-grid and cell-size geometry.
Restores a compatible snapshot and its saved geometry.
Scrolls the viewport by a signed line delta.
Scrolls to the end of the buffer.
Scrolls to the beginning of the buffer.
Selects all terminal buffer content.
Changes the default cursor shape and blink behavior used by Ghostty.
Changes the retained scrollback capacity without resetting terminal contents.
Replaces terminal colors and invalidates the render state.
Serializes Ghostty terminal state and geometry.
Encodes composed text input and emits resulting PTY bytes.
Patches the current theme without resetting unspecified properties.
Reads a complete visible viewport snapshot.
Applies a wheel gesture as mouse tracking input or viewport scrolling.
Parses terminal output and flushes resulting callbacks.
Headless terminal exposing Ghostty VT parsing, input encoding, selection, and snapshots.