rl.moveCursor(dx, dy)


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

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