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

Method render

packages/pi-tui/src/tui.ts:77–77  ·  view source on GitHub ↗

* Render the component to lines for the given viewport width * @param width - Current viewport width * @returns Array of strings, each representing a line

(width: number)

Source from the content-addressed store, hash-verified

75 * @returns Array of strings, each representing a line
76 */
77 render(width: number): string[];
78
79 /**
80 * Optional handler for keyboard input when component has focus

Callers 15

editor.test.tsFile · 0.65
input.test.tsFile · 0.65
markdown.test.tsFile · 0.65
renderMethod · 0.65
tui-render.test.tsFile · 0.65
renderMethod · 0.65
compositeOverlaysMethod · 0.65
doRenderMethod · 0.65
renderMethod · 0.65

Implementers 15

InputRecorderpackages/pi-tui/test/tui-cell-size-inp
SimpleContentpackages/pi-tui/test/overlay-short-con
SimpleOverlaypackages/pi-tui/test/overlay-short-con
MarkdownWithInputpackages/pi-tui/test/markdown.test.ts
StaticOverlaypackages/pi-tui/test/overlay-non-captu
EmptyContentpackages/pi-tui/test/overlay-non-captu
FocusableOverlaypackages/pi-tui/test/overlay-non-captu
StaticOverlaypackages/pi-tui/test/overlay-options.t
EmptyContentpackages/pi-tui/test/overlay-options.t
StyledContentpackages/pi-tui/test/overlay-options.t
HyperlinkContentpackages/pi-tui/test/overlay-options.t
KeyLoggerpackages/pi-tui/test/key-tester.ts

Calls

no outgoing calls

Tested by 1

renderMethod · 0.52