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.