stop method

void stop()

Stop the progress bar without completing

Implementation

void stop() {
  stdout.writeln(''); // New line
  // Show cursor
  stdout.write('\x1B[?25h');
}