()
| 85 | }; |
| 86 | |
| 87 | const clearStatusMessage = () => { |
| 88 | let lines = 0; |
| 89 | for (const state of logStatusStates) { |
| 90 | if (state.currentLines) { |
| 91 | lines += state.currentLines; |
| 92 | state.currentLines = 0; |
| 93 | } |
| 94 | } |
| 95 | for (let i = 0; i < lines; i++) { |
| 96 | if (i > 0) stream.write(CURSOR_UP); |
| 97 | stream.write(CLEAR_LINE); |
| 98 | } |
| 99 | }; |
| 100 | |
| 101 | const writeStatusMessage = () => { |
| 102 | const column = stream.columns || 40; |
no test coverage detected