readline.clearScreenDown(stream[, callback])


版本历史
版本变更
v18.0.0

将无效回调传给 callback 参数现在会抛出 ERR_INVALID_ARG_TYPE 而不是 ERR_INVALID_CALLBACK

v12.7.0

流的 write() 回调和返回值是公开的。

v0.7.7

新增于: v0.7.7

  • stream <stream.Writable>

  • callback <Function> 操作完成后调用。

    \callback <Function> Invoked once the operation completes.

  • 返回:<boolean> false(如果 stream 希望调用代码在继续写入附加数据之前等待 'drain' 事件触发);否则 true

    \Returns: <boolean> false if stream wishes for the calling code to wait for the 'drain' event to be emitted before continuing to write additional data; otherwise true.

readline.clearScreenDown() 方法从光标的当前位置向下清除给定的 TTY 流。

\The readline.clearScreenDown() method clears the given TTY stream from the current position of the cursor down.

AltStyle によって変換されたページ (->オリジナル) /