terminalHeight property

int get terminalHeight

Returns the current height (rows) of the terminal.

Implementation

static int get terminalHeight => stdout.terminalLines;