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

Function clearScreenDown

lib/internal/readline/callbacks.js:114–125  ·  view source on GitHub ↗

* clears the screen from the current position of the cursor down

(stream, callback)

Source from the content-addressed store, hash-verified

112 */
113
114function clearScreenDown(stream, callback) {
115 if (callback !== undefined) {
116 validateFunction(callback, 'callback');
117 }
118
119 if (stream === null || stream === undefined) {
120 if (typeof callback === 'function') process.nextTick(callback, null);
121 return true;
122 }
123
124 return stream.write(kClearScreenDown, callback);
125}
126
127module.exports = {
128 clearLine,

Callers 7

clearFunction · 0.85
[kRefreshLine]Method · 0.85
[kAddNewLineOnTTY]Method · 0.85
[kTtyWrite]Method · 0.85
clearPreviewFunction · 0.85
printFunction · 0.85
resetFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…