text: const readline = require('readline')
  // 清空控制台
  module.exports = function clearConsole(title) {
    if (process.stdout.isTTY) {
      const blank = '\n'.repeat(process.stdout.rows)
      console.log(blank)
      readline.cursorTo(process.stdout, 0, 0)
      readline.clearScreenDown(process.stdout)
      if (title) {
        console.log(title)
      }
    }
  }
  