import type { Terminal } from "@earendil-works/pi-tui"; /** Only terminal IO is doubled; rendering, overlay ownership and input routing are real. */ export class MemoryTerminal implements Terminal { columns = 120; rows = 40; kittyProtocolActive = false; input: (data: string) => void = () => {}; resize: () => void = () => {}; start(input: (data: string) => void, resize: () => void): void { this.input = input; this.resize = resize; } stop(): void {} async drainInput(): Promise {} write(): void {} moveBy(): void {} hideCursor(): void {} showCursor(): void {} clearLine(): void {} clearFromCursor(): void {} clearScreen(): void {} setTitle(): void {} setProgress(): void {} setProgramStatus(): void {} }