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

    Class CoreTerminal

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

    Implements

    Index
    id: number

    Runtime-unique terminal identifier.

    • Encodes a focus transition when focus reporting is enabled.

      Parameters

      • focused: boolean

      Returns Uint8Array

    • Returns whether an ANSI or DEC terminal mode is enabled.

      Parameters

      • mode: number
      • ansi: boolean = false

      Returns boolean

    • Encodes pasted content, honoring bracketed-paste mode.

      Parameters

      • data: string | Uint8Array<ArrayBufferLike>

      Returns Uint8Array

    • Applies character-grid and cell-size geometry.

      Parameters

      • cols: number
      • rows: number
      • cellWidthPx: number = ...
      • cellHeightPx: number = ...

      Returns void

    • Changes the retained scrollback capacity without resetting terminal contents.

      Parameters

      • lines: number

      Returns void

    • Encodes composed text input and emits resulting PTY bytes.

      Parameters

      • data: string | Uint8Array<ArrayBufferLike>

      Returns Uint8Array

    • Parses terminal output and flushes resulting callbacks.

      Parameters

      • data: string | Uint8Array<ArrayBufferLike>

      Returns void