A TTY stream.
constructor
readline.promises.Readline.constructor
Not implemented in Bun
Referenced types
class Readline
- ): this;
The
rl.clearLine()method adds to the internal list of pending action an action that clears current line of the associatedstreamin a specified direction identified bydir. Callrl.commit()to see the effect of this method, unlessautoCommit: truewas passed to the constructor.@returnsthis
The
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. Callrl.commit()to see the effect of this method, unlessautoCommit: truewas passed to the constructor.@returnsthis
The
rl.commit()method sends all the pending actions to the associatedstreamand clears the internal list of pending actions.- x: number,y?: number): this;
The
rl.cursorTo()method adds to the internal list of pending action an action that moves cursor to the specified position in the associatedstream. Callrl.commit()to see the effect of this method, unlessautoCommit: truewas passed to the constructor.@returnsthis
- dx: number,dy: number): this;
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 associatedstream. Callrl.commit()to see the effect of this method, unlessautoCommit: truewas passed to the constructor.@returnsthis
The
rl.rollbackmethods clears the internal list of pending actions without sending it to the associatedstream.@returnsthis