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

Method render

packages/pi-tui/src/tui.ts:287–299  ·  view source on GitHub ↗
(width: number)

Source from the content-addressed store, hash-verified

285 }
286
287 render(width: number): string[] {
288 // Extremely narrow terminals can report tiny or even non-positive
289 // column counts; never propagate a width below 1 into components.
290 width = Math.max(1, width);
291 const lines: string[] = [];
292 for (const child of this.children) {
293 const childLines = child.render(width);
294 for (const line of childLines) {
295 lines.push(line);
296 }
297 }
298 return lines;
299 }
300}
301
302/**

Callers

nothing calls this directly

Calls 2

renderMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected