termRows (Function)

Signature: termRows() -> int

Description: Returns the terminal height in rows, or -1 when unavailable.

Returns: int

Example

let height = termRows()
height = termRows ()