MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getWindowDimensions

Function getWindowDimensions

web/lib/platform.ts:26–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * In the browser it uses window.innerWidth/innerHeight.
25 */
26export function getWindowDimensions(): { width: number; height: number } {
27 if (!isWeb) {
28 return {
29 width: (typeof process !== "undefined" && process.stdout?.columns) || 80,
30 height: (typeof process !== "undefined" && process.stdout?.rows) || 24,
31 };
32 }
33 return {
34 width: window.innerWidth,
35 height: window.innerHeight,
36 };
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected