screenLines property

List<String> get screenLines

The lines of the screen, the scrollback first, without the blanks that end them, the blank lines at the bottom left out.

Implementation

List<String> get screenLines {
  _feedFrames();
  final lines = [...screen.lines];
  while (lines.isNotEmpty && lines.last.isEmpty) {
    lines.removeLast();
  }
  return lines;
}