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


  • stream <stream.Writable>
  • x <number>
  • y <number>
  • callback <Function> 在操作完成后调用一次。
  • 返回值:如果 stream 希望调用代码在继续写入更多数据之前等待 'drain' 事件被触发,则返回 {boolean} false;否则返回 true`。

readline.cursorTo() 方法将光标移动到给定 文字电话 stream 中的指定位置。

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