clearLine function

void clearLine()

Clears the current line, and goes back to the start of the line.

Implementation

void clearLine() {
  // // \r^[[2K\r
  stdout.add([$esc, $lbracket, $2, $k, $cr]);
  // stdout.write('\r');
  // for (int i = 0; i < stdout.terminalColumns; i++) stdout.write(' ');
  // stdout.write('\r');
}