MCPcopy
hub / github.com/webpack/webpack / clearStatusMessage

Function clearStatusMessage

lib/node/nodeConsole.js:87–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 3

setStatusMessageFunction · 0.85
writeColoredFunction · 0.85
nodeConsole.jsFile · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected