gespenst API - v0.1.0
    Preparing search index...

    Module core

    CoreRuntime

    Shared headless Ghostty WASM runtime that creates and owns terminal instances.

    CoreTerminal

    Headless terminal exposing Ghostty VT parsing, input encoding, selection, and snapshots.

    GhosttyAbi

    Validated accessor for Ghostty's generated WASM ABI manifest.

    GhosttyError

    Error returned by a failed Ghostty WASM operation.

    UnsupportedGhosttyAbiError

    Thrown when a Ghostty WASM build has an incompatible or incomplete ABI manifest.

    CellStyle

    Text attributes attached to a rendered cell.

    ClipboardContent

    One MIME-typed clipboard payload.

    ClipboardPasteRequest

    MIME representations supplied for a user-initiated clipboard paste.

    ClipboardProtocolOptions

    Resource limits for an enabled Kitty clipboard protocol integration.

    ClipboardWriteRequest

    Clipboard write requested by terminal output.

    CoreRuntimeOptions

    WebAssembly sources used to initialize a headless Ghostty runtime.

    CoreTerminalOptions

    Initial options shared by headless and browser terminals.

    Disposable

    A resource that can be released deterministically.

    GhosttyAbiMetadata

    Target ABI recorded alongside a vendored Ghostty build.

    GhosttyBuildMetadata

    Reproducibility and ABI metadata for the vendored Ghostty WASM.

    KeyInput

    A physical or composed keyboard input sent to Ghostty.

    LoadedGhostty

    Validated result returned by loadGhostty.

    PointerInput

    A pointer input in terminal backing-surface coordinates.

    PointerResult

    Result of encoding a pointer action.

    RenderCell

    One visible terminal cell.

    RenderColor

    A normalized color used in render snapshots.

    RenderColors

    Resolved colors for a render frame.

    RenderCursor

    Cursor state for a render frame.

    RenderFrame

    Incremental frame produced after parsing or invalidation.

    RenderRow

    One rendered row and its cell-level details.

    RenderSelection

    Selected columns on a rendered row.

    ResolvedTerminalTheme

    Fully normalized terminal theme.

    RgbaColor

    An RGB color with an alpha channel between 0 and 1.

    RgbColor

    An RGB color with channels in the inclusive 0-255 range.

    SelectionFormatOptions

    Formatting options for selected terminal text.

    TerminalBufferRange

    Half-open absolute row range within the active terminal buffer.

    TerminalBufferRow

    A row returned by the paged terminal buffer API.

    TerminalBufferSnapshot

    Buffer metadata and a requested page of rows captured together.

    TerminalBufferState

    Active screen and scroll position metadata for terminal buffer consumers.

    TerminalCursorAttributes

    Current pen attributes used when the parser writes the next cell.

    TerminalEventMap

    Event payloads emitted by the headless terminal core.

    TerminalGeometry

    Character-grid and backing-surface dimensions for a terminal.

    TerminalInputEvent

    Bytes and origin emitted by a terminal input operation.

    TerminalModeState

    Stable terminal mode state queried directly from Ghostty.

    TerminalNotification

    Desktop notification requested by terminal output.

    TerminalProgressReport

    Progress state and optional percentage reported by terminal output.

    TerminalTheme

    Colors used to render the terminal and its ANSI palette.

    TerminalViewportChangeEvent

    Painted viewport notification carrying the authoritative buffer state.

    ViewportSnapshot

    Complete snapshot of the visible viewport.

    CellColor

    The color encoding authored by terminal output before theme palette resolution.

    CellWidth

    Display-width role of a rendered cell.

    ClipboardLocation

    Clipboard destination used by OSC 52 and the Kitty clipboard protocol.

    ClipboardPasteResult

    Result of applying a MIME-aware clipboard paste to the current terminal state.

    CursorStyle

    Cursor shape requested by the terminal application.

    DirtyState

    Amount of terminal content invalidated by the latest parse.

    InputSource

    Origin of bytes emitted toward a PTY.

    KeyAction

    Lifecycle phase for a key input event.

    MouseAction

    Pointer-button lifecycle phase.

    MouseButton

    Mouse button names understood by Ghostty.

    ProgressState

    OSC progress-report state.

    SemanticContent

    Semantic role reported for terminal content.

    TerminalColor

    A portable CSS color string or structured RGB(A) value.

    ThemeAppearance

    Light or dark visual appearance advertised to terminal applications.

    WasmSource

    A URL, bytes, response, or compiled module accepted as a WebAssembly source.

    DEFAULT_CALLBACKS_URL

    Default callback bridge WASM URL emitted and rewritten by consumer bundlers.

    DEFAULT_WASM_URL

    Default Ghostty VT WASM URL emitted and rewritten by consumer bundlers.

    GHOSTTY_BUILD

    Metadata and checksum for the vendored nightly Ghostty WASM build.

    createCoreRuntime

    Creates and initializes a shared headless Ghostty runtime.

    loadCallbackBridge

    Instantiates the callback bridge with host functions used by Ghostty terminals.

    loadGhostty

    Loads, validates, and instantiates a Ghostty VT WASM module.

    ANSI_COLOR_NAMES → ANSI_COLOR_NAMES
    cloneTerminalTheme → cloneTerminalTheme
    DEFAULT_THEME → DEFAULT_THEME
    KeyModifiers → KeyModifiers
    mergeTerminalTheme → mergeTerminalTheme
    PaletteGenerator → PaletteGenerator
    parseTerminalColor → parseTerminalColor
    preloadGhostty → preloadGhostty
    resolveTerminalTheme → resolveTerminalTheme
    terminalColorToCss → terminalColorToCss
    ThemeValidationError → ThemeValidationError