MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / start

Method start

packages/pi-tui/test/virtual-terminal.ts:32–37  ·  view source on GitHub ↗
(onInput: (data: string) => void, onResize: () => void)

Source from the content-addressed store, hash-verified

30 }
31
32 start(onInput: (data: string) => void, onResize: () => void): void {
33 this.inputHandler = onInput;
34 this.resizeHandler = onResize;
35 // Enable bracketed paste mode for consistency with ProcessTerminal
36 this.xterm.write("\x1b[?2004h");
37 }
38
39 async drainInput(_maxMs?: number, _idleMs?: number): Promise<void> {
40 // No-op for virtual terminal - no stdin to drain

Callers

nothing calls this directly

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected