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

Method flush

packages/pi-tui/src/stdin-buffer.ts:400–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

398 }
399
400 flush(): string[] {
401 if (this.timeout) {
402 clearTimeout(this.timeout);
403 this.timeout = null;
404 }
405
406 if (this.buffer.length === 0) {
407 return [];
408 }
409
410 const sequences = [this.buffer];
411 this.buffer = "";
412 this.pendingKittyPrintableCodepoint = undefined;
413 return sequences;
414 }
415
416 clear(): void {
417 if (this.timeout) {

Callers 1

processMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected