eraseSecondLastLine method

void eraseSecondLastLine()

Implementation

void eraseSecondLastLine() {
  stdout.write('\x1B[2A'); // Move the cursor up two lines
  stdout.write('\x1B[K'); // Clear the line
}