clearScreen method

void clearScreen()

Clears the entire screen

Implementation

void clearScreen() {
  if (Platform.isWindows) {
    final winTermlib = _termlib as TermLibWindows;
    winTermlib.clearScreen();
  } else {
    stdout.write(ansiEraseInDisplayAll + ansiResetCursorPosition);
  }
}