DuckDB Terminal - v0.7.0
    Preparing search index...

    Class TerminalAdapter

    Adapts Gespenst's byte-oriented input and asynchronous rendering to the SQL REPL. Owns browser handlers and disposes the native terminal and its addons.

    Index
    cleanups: (() => void)[] = []
    currentTheme: Theme | null = null
    dataHandler?: (data: string) => void
    decoder: TextDecoder = ...
    disposed: boolean = false
    errorHandler?: (error: Error) => void
    initialization: Promise<void> | null = null
    links: WebLinksAddon | null = null
    linksEnabled: boolean = true
    pasteHandler?: (text: string) => void
    resizeHandler?: (cols: number, rows: number) => void
    selection: string = ''
    selectionRevision: number = 0
    terminal: BrowserTerminal | null = null
    themeQueue: Promise<void> = ...
    • Creates the terminal, loads packaged WASM, and mounts it in the host.

      Parameters

      • container: HTMLElement
      • options: TerminalOptions = {}

      Returns Promise<void>

    • Parameters

      • container: HTMLElement
      • options: TerminalOptions
      • scrollbackLines: number

      Returns Promise<void>