code: function handleStdoutWrite() {
      let stream = process.stderr;
      let str = arguments[0];
      if (typeof str === 'string') {
          if (str.includes('\n')) {
              let result = parseDisplayLength(str, 0, stream.columns);
              readline.clearLine(stream, 1);
              for (let i = 0; i < result.yLength; i++) {
                  stream.write('\n');
                  readline.clearLine(stream, 0);
              }
              readline.moveCursor(stream, 0, -result.yLength);
          }
          else {
              readline.clearLine(stream, 1);
          }
      }
      stdoutWrite.apply(process.stdout, arguments);
      if (typeof str === 'string')
          readline.clearLine(stream, 1);
  }
docs: 帮助其他程序清理控制台，避免进度字符的残留