()
| 24 | |
| 25 | /** Terminal row count. Falls back to window character height. */ |
| 26 | export 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 |