refresh method

void refresh()

Forces a redraw of every visible row (the canvas can go stale after a layout change such as exiting fullscreen).

Implementation

void refresh() {
  try {
    _term.refresh(0, _term.rows - 1);
  } on Object {
    // Harmless if the terminal isn't ready yet.
  }
}