* clears the screen from the current position of the cursor down
(stream, callback)
| 112 | */ |
| 113 | |
| 114 | function 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 | |
| 127 | module.exports = { |
| 128 | clearLine, |
no test coverage detected
searching dependent graphs…