function OutputStream( repl, autoPage ) {
	if ( !( this instanceof OutputStream ) ) {
		return new OutputStream( repl, autoPage );
	}
	debug( 'Creating an output stream...' );
	Transform.call( this, {
		'encoding': 'utf8',
		'decodeString': false
	});

	// Cache a reference to the REPL instance:
	this._repl = repl;

	// Initialize a flag indicating whether "paging" is enabled:
	this._paging = autoPage;

	// Initialize a flag indicating whether "paging" is currently active:
	this._isPaging = false;

	// Initialize a buffer for caching streamed chunks:
	this._buffer = '';

	// Initialize a buffer for storing line breaks:
	this._indices = [];

	// Initialize a variable for tracking the current scroll position:
	this._idx = -1;

	// Initialize a flag indicating whether the stream has been destroyed:
	this._destroyed = false;

	return this;
}
REPL output stream.

@private
@constructor
@param {REPL} repl - REPL instance
@param {boolean} autoPage - boolean indicating whether auto-paging should be initially enabled
@returns {OutputStream} transform stream