(rows: number)
| 894 | }, |
| 895 | |
| 896 | async setInlineRows(rows: number): Promise<void> { |
| 897 | if (disposed) throw new Error("NodeBackend: disposed"); |
| 898 | if (fatal !== null) throw fatal; |
| 899 | if (!started || worker === null) throw new Error("NodeBackend: not started"); |
| 900 | if (stopRequested) throw new Error("NodeBackend: stopped"); |
| 901 | if (!isInlineScreen) { |
| 902 | throw new ZrUiError("ZRUI_BACKEND_ERROR", 'setInlineRows requires screen.mode "inline"'); |
| 903 | } |
| 904 | validateInlineRowsOrThrow(rows, "setInlineRows: rows"); |
| 905 | if (initConfigResolved === null) { |
| 906 | throw new Error("NodeBackend: not started"); |
| 907 | } |
| 908 | /* Resend the resolved create surface (width policy settles at start). */ |
| 909 | const runtimeBase = deriveRuntimeConfigBase(initConfigResolved); |
| 910 | send({ type: "setConfig", config: { ...runtimeBase, inlineRows: rows } }); |
| 911 | }, |
| 912 | |
| 913 | async getCaps(): Promise<TerminalCaps> { |
| 914 | if (disposed) throw new Error("NodeBackend: disposed"); |
nothing calls this directly
no test coverage detected