writeStream.moveCursor(dx, dy[, callback])


  • dx <number>
  • dy <number>
  • callback <Function> 操作完成后调用。
  • 返回: <boolean> 如果流希望调用代码在继续写入其他数据之前等待 'drain' 事件被触发,则为 false;否则为 true

writeStream.moveCursor() 相对于其当前位置移动此 WriteStream 的光标。

  • dx <number>
  • dy <number>
  • callback <Function> Invoked once the operation completes.
  • Returns: <boolean> false if the stream wishes for the calling code to wait for the 'drain' event to be emitted before continuing to write additional data; otherwise true.

writeStream.moveCursor() moves this WriteStream's cursor relative to its current position.