function EditorActions( repl, ttyWrite ) {
	if ( !( this instanceof EditorActions ) ) {
		return new EditorActions( repl, ttyWrite );
	}

	// Cache a reference to the readline interface:
	this._rli = repl._rli;

	// Cache a reference to the output writable stream:
	this._ostream = repl._ostream;

	// Cache a reference to the private readline interface `ttyWrite` to allow calling the method when wanting default behavior:
	this._ttyWrite = ttyWrite;

	// Cache a reference to the REPL keybindings:
	this._keybindings = repl._keybindings;

	return this;
}
Constructor for creating an editor actions prototype.

@private
@constructor
@param {REPL} repl - REPL instance
@param {Function} ttyWrite - function to trigger default behavior of a keypress
@returns {EditorActions} editor actions instance