clearInfo method

void clearInfo()

Clear the current info line and return the caret.

Implementation

void clearInfo()
{
  if (stdout.supportsAnsiEscapes) {
    stdout.write('\x1B[2K\r');
  } else {
    stdout.writeln();
  }
}