clearScreen method

void clearScreen({
  1. bool resetCursor = true,
})

Implementation

void clearScreen({bool resetCursor = true}) {
  if (resetCursor) {
    _stdout.write(
      '${ConsoleStrings.eraseScreen}${ConsoleStrings.cursorToHome}',
    );
  } else {
    _stdout.write(ConsoleStrings.eraseScreen);
  }
}