clearError method
void
clearError()
Clear the current error line and return the caret.
Implementation
void clearError()
{
if (stderr.supportsAnsiEscapes) {
stderr.write('\x1B[2K\r');
} else {
stderr.writeln();
}
}