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

Function write

apps/kimi-web/src/composables/useTerminal.ts:68–72  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

66 }
67
68 function write(data: string): void {
69 const current = terminal.value;
70 if (!current || readOnly.value) return;
71 ensureConnection()?.terminalInput(current.sessionId, current.id, data);
72 }
73
74 function resize(cols: number, rows: number): void {
75 const current = terminal.value;

Callers

nothing calls this directly

Calls 2

ensureConnectionFunction · 0.85
terminalInputMethod · 0.65

Tested by

no test coverage detected