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

Method flush

packages/pi-tui/test/virtual-terminal.ts:131–136  ·  view source on GitHub ↗

* Wait for all pending writes to complete. Viewport and scroll buffer will be updated.

()

Source from the content-addressed store, hash-verified

129 * Wait for all pending writes to complete. Viewport and scroll buffer will be updated.
130 */
131 async flush(): Promise<void> {
132 // Write an empty string to ensure all previous writes are flushed
133 return new Promise<void>((resolve) => {
134 this.xterm.write("", () => resolve());
135 });
136 }
137
138 /**
139 * Simulate the user scrolling the terminal window (negative = up into scrollback).

Callers 2

flushAndGetViewportMethod · 0.95
waitForRenderMethod · 0.95

Calls 2

writeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected