Skip to content

liveRegionHeight

liveRegionHeight(terminal): number

Defined in: live-region.ts:29

How many rows a live region may occupy on this terminal.

One less than the viewport: the row the cursor rests on after the last line is written belongs to the region too, and cursorUp cannot reach past the top of the screen. A caller choosing what to show budgets against this; the region enforces it regardless.

Terminal

number