showLive method

void showLive(
  1. List<String> lines, {
  2. int? cursorRow,
  3. int? cursorColumn,
})

Draws lines in the live region, separated from the transcript by an empty line. cursorRow counts from the first of lines.

Implementation

void showLive(List<String> lines, {int? cursorRow, int? cursorColumn}) {
  final spaced = !_lastLineBlank && lines.isNotEmpty;
  live.render(
    spaced ? <String>['', ...lines] : lines,
    cursorRow: cursorRow == null ? null : cursorRow + (spaced ? 1 : 0),
    cursorColumn: cursorColumn,
  );
}