MCPcopy Index your code
hub / github.com/nodejs/node / clearLine

Method clearLine

lib/internal/debugger/inspect.js:179–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 clearLine() {
180 if (this.stdout.isTTY) {
181 this.stdout.cursorTo(0);
182 this.stdout.clearLine(1);
183 } else {
184 this.stdout.write('\b');
185 }
186 }
187
188 print(text, appendNewline = false) {
189 this.clearLine();

Callers 1

printMethod · 0.95

Calls 2

cursorToMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected