readline.cursorTo(stream, x[, y][, callback])


  • stream <stream.Writable>

  • x <number>

  • y <number>

  • 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.cursorTo() 方法将光标移动到给定的 TTY stream 中的指定位置。

¥The readline.cursorTo() method moves cursor to the specified position in a given TTY stream.