Cotal TypeScript packages
    Preparing search index...

    Function openTerminalSession

    • One attach session for a caller that draws the seat's terminal itself, such as a pane inside a TUI. The seat is located and pinned as attachSeat pins it, and expectedTarget fences the run the caller chose, so a namesake can never answer. Nothing touches this process's terminal and nothing reconnects: the transport's end is the session's end, and the reconnecting path's short ping finds a dead link within seconds. Every refusal comes back as a message.

      Parameters

      Returns Promise<{ ok: true; session: TerminalSession } | { message: string; ok: false }>