MCPcopy Create free account
hub / github.com/nodejs/node / clearScreenDown

Method clearScreenDown

lib/internal/readline/promises.js:109–116  ·  view source on GitHub ↗

* Clears the screen from the current position of the cursor down. * @returns {Readline} this

()

Source from the content-addressed store, hash-verified

107 * @returns {Readline} this
108 */
109 clearScreenDown() {
110 if (this.#autoCommit) {
111 process.nextTick(() => this.#stream.write(kClearScreenDown));
112 } else {
113 ArrayPrototypePush(this.#todo, kClearScreenDown);
114 }
115 return this;
116 }
117
118 /**
119 * Sends all the pending actions to the associated `stream` and clears the

Callers 4

tty.jsFile · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected