TerminalForegroundPainter typedef

TerminalForegroundPainter = void Function(Canvas canvas, Offset origin, RenderTerminal terminal, int firstLine, int lastLine)

Paints over the text of rows firstLine to lastLine, inside the terminal: a cell sits at origin + terminal.getOffset(cell) on canvas, and whatever moves the text, a scroll or an overscroll effect, moves this with it.

Implementation

typedef TerminalForegroundPainter = void Function(
  Canvas canvas,
  Offset origin,
  RenderTerminal terminal,
  int firstLine,
  int lastLine,
);