clearLine function

void clearLine()

Implementation

void clearLine() {
  stdout.write('\r\x1B[K'); // Clear the current line
}