| 26 | } |
| 27 | |
| 28 | class 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 | |
| 48 | async function renderAndFlush(tui: TUI, terminal: VirtualTerminal): Promise<void> { |
| 49 | tui.requestRender(true); |
nothing calls this directly
no outgoing calls
no test coverage detected