The readline module provides an interface for reading data from a Readable stream (such as process.stdin) one line at a time.

See also:

Static methods

staticclearLine(stream:IWritable, dir:ClearLineDirection, ?callback:() ‑> Void):Bool

The readline.clearLine() method Clears current line of given TTY stream in a specified direction identified by dir.

See also:

staticclearScreenDown(stream:IWritable, ?callback:() ‑> Void):Bool

The readline.clearScreenDown() method clears the given TTY stream from the current position of the cursor down.

See also:

staticcreateInterface(options:ReadlineOptions):Interface

staticcreateInterface(input:IReadable, ?output:IWritable, ?completer:Null<ReadlineCompleterCallback>, ?terminal:Bool):Interface

The readline.createInterface() method creates a new readline.Interface instance.

See also:

staticcursorTo(stream:IWritable, x:Int, ?y:Int, ?callback:() ‑> Void):Bool

The readline.cursorTo() method moves cursor to the specified position in a given TTY stream.

See also:

staticemitKeypressEvents(stream:IReadable, ?iface:Interface):Void

The readline.emitKeypressEvents() method causes the given Readable stream to begin emitting 'keypress' events corresponding to received input.

See also:

staticmoveCursor(stream:IWritable, dx:Int, dy:Int, ?callback:() ‑> Void):Bool

The readline.moveCursor() method moves the cursor relative to its current position in a given TTY stream.

See also: