rl.cursorTo(x[, y])


rl.cursorTo() 方法向待处理动作的内部列表添加一个动作,该动作将光标移动到相关 stream 中指定的位置。 调用 rl.commit() 看看这个方法的效果,除非 autoCommit: true 传给了构造函数。

The rl.cursorTo() method adds to the internal list of pending action an action that moves cursor to the specified position in the associated stream. Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.