readline.moveCursor(stream, dx, dy[, callback])
stream
<stream.Writable>dx
<number>dy
<number>callback
<Function> 操作完成后调用。- 返回: <boolean> 如果
stream
希望调用代码在继续写入额外的数据之前等待'drain'
事件被触发,则为false
;否则为true
。
readline.moveCursor()
方法相对于它在给定的 TTY stream
中的当前位置移动光标。
stream
<stream.Writable>dx
<number>dy
<number>callback
<Function> Invoked once the operation completes.- Returns: <boolean>
false
ifstream
wishes for the calling code to wait for the'drain'
event to be emitted before continuing to write additional data; otherwisetrue
.
The readline.moveCursor()
method moves the cursor relative to its current
position in a given TTY stream
.