intellibrix v1.0.0
    Preparing search index...

    Interface ReplIO

    The slice of TerminalBrick that chatRepl needs.

    interface ReplIO {
        input(): Promise<string>;
        onInterrupt?(handler: () => void): () => void;
        print(text: string): void;
        printError(text: string): void;
        printLine(text: string): void;
        release?(): void;
    }
    Index
    • Subscribes to Ctrl+C, returning an unsubscribe. Lets Ctrl+C cancel an in-flight ask().

      Parameters

      • handler: () => void

      Returns () => void