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

Class FocusableOverlay

packages/pi-tui/test/overlay-non-capturing.test.ts:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28class FocusableOverlay implements Component, Focusable {
29 focused = false;
30 inputs: string[] = [];
31 private lines: string[];
32
33 constructor(lines: string[]) {
34 this.lines = lines;
35 }
36
37 handleInput(data: string): void {
38 this.inputs.push(data);
39 }
40
41 render(): string[] {
42 return this.lines;
43 }
44
45 invalidate(): void {}
46}
47
48async function renderAndFlush(tui: TUI, terminal: VirtualTerminal): Promise<void> {
49 tui.requestRender(true);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected