rl.moveCursor(dx, dy)
rl.moveCursor() 方法会将一个将光标相对于其在关联 stream 中当前位置移动的动作添加到内部的待处理动作列表中。除非在构造函数中传入了 autoCommit: true,否则需要调用 rl.commit() 才能看到该方法的效果。
【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.】