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

Function getRows

web/lib/terminal-compat.ts:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25/** Terminal row count. Falls back to window character height. */
26export function getRows(): number {
27 if (isWeb) {
28 if (typeof window !== "undefined") {
29 return Math.floor(window.innerHeight / 16);
30 }
31 return 40;
32 }
33 return (typeof process !== "undefined" && process.stdout?.rows) || 24;
34}
35
36// ─── process.exit stub ───────────────────────────────────────────────────────
37

Callers 1

terminal-compat.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected