()
| 39 | let sameCount = 0 |
| 40 | |
| 41 | function clearScreen() { |
| 42 | const repeatCount = process.stdout.rows - 2 |
| 43 | const blank = repeatCount > 0 ? '\n'.repeat(repeatCount) : '' |
| 44 | console.log(blank) |
| 45 | readline.cursorTo(process.stdout, 0, 0) |
| 46 | readline.clearScreenDown(process.stdout) |
| 47 | } |
| 48 | |
| 49 | export interface LoggerOptions { |
| 50 | prefix?: string |