MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / setInlineRows

Function setInlineRows

packages/node/src/backend/nodeBackend.ts:896–911  ·  view source on GitHub ↗
(rows: number)

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls 3

deriveRuntimeConfigBaseFunction · 0.85
sendFunction · 0.85

Tested by

no test coverage detected