Package-level declarations
Types
Instances of the readline.Interface class are constructed using the readline.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.
Instances of the readlinePromises.Interface class are constructed using the readlinePromises.createInterface() method. Every instance is associated with a single input Readable stream and a single output Writable stream. The output stream is used to print prompts for user input that arrives on, and is read from, the input stream.
Functions
The readline.clearScreenDown() method clears the given TTY stream from the current position of the cursor down.
The readlinePromises.createInterface() method creates a new readlinePromises.Interface instance.
The readline.emitKeypressEvents() method causes the given Readable stream to begin emitting 'keypress' events corresponding to received input.
The readline.moveCursor() method moves the cursor relative to its current position in a given TTY stream.