viewHeight property

int get viewHeight

Height of the viewport in rows. Also the index of the last line.

Implementation

int get viewHeight => terminal.viewHeight;