The text of every line, the scrollback first, without the blanks that end them.
List<String> get lines => [ for (final row in history) _text(row), for (final row in _grid) _text(row), ];