Constructors Jump to heading
Jump to headingReadline(stream: WritableStream,options?: { autoCommit?: boolean;  },)Methods Jump to heading
Jump to headingclearLine(dir: Direction): thisThe rl.clearLine() method adds to the internal list of pending action an
action that clears current line of the associated stream in a specified
direction identified by dir.
Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.
Jump to headingclearScreenDown(): thisThe rl.clearScreenDown() method adds to the internal list of pending action an
action that clears the associated stream from the current position of the
cursor down.
Call rl.commit() to see the effect of this method, unless autoCommit: true was passed to the constructor.
Jump to headingcommit(): Promise<void>The rl.commit() method sends all the pending actions to the associated stream and clears the internal list of pending actions.
Jump to headingcursorTo(x: number,y?: number,): thisThe 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.
Jump to headingmoveCursor(dx: number,dy: number,): thisThe 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.
Jump to headingrollback(): thisThe rl.rollback methods clears the internal list of pending actions without
sending it to the associated stream.