public static void rePositionCursor(PrintStream ps) {
    ps.print(ansi().cursorUp(0).toString());
    ps.flush();
  }
Renders information from ProgressMonitor to the stream provided.
common/src/java/org/apache/hadoop/hive/common/log/InPlaceUpdate.java