private void reprintMultiLine(String line) {
    int numLines = line.split("\r\n|\r|\n").length;
    out.print(ansi().eraseLine(Ansi.Erase.ALL).a(line).a('\n').toString());
    out.flush();
    lines += numLines;
  }
NOTE: Use this method only if isUnixTerminal is true.
Erases the current line and prints the given multiline. Make sure the specified line is not
terminated by linebreak.

@param line - line to print
common/src/java/org/apache/hadoop/hive/common/log/InPlaceUpdate.java