src/commands/logs.js
/**
   * Clear the console for the user
   */
Clear the console for the user
Clear the console for the user
clearScreen() {
    console.clear() 
    const logCount = this.logs.length
    const count = process.stdout.rows || logCount
    const toPrint = logCount > count ? this.logs.slice(logCount - count) : this.logs
    toPrint.forEach(entry => entry.setPrinted(false))
  }
clearScreen ( ) { console . clear ( ) const logCount = this . logs . length const count = process . stdout . rows || logCount const toPrint = logCount > count ? this . logs . slice ( logCount - count ) : this . logs toPrint . forEach ( entry => entry . setPrinted ( false ) ) }
Clear the console for the user
Clear the console for the user
// eslint-disable-line no-console // Mark logs to be reprinted