function command( repl ) {
	return onCommand;

	/**
	* Enables paging for a provided string.
	*
	* @private
	* @param {string} value - input string
	*/
	function onCommand( value ) {
		var ostream = repl._ostream;

		// Check whether auto-paging is already enabled...
		if ( repl.settings( 'autoPage' ) ) {
			// Nothing needed here, as we can defer to already enabled behavior:
			ostream.write( value );
			return;
		}
		// Temporarily enable paging:
		ostream.enablePaging();

		// Write the input value:
		ostream.write( value );

		// Disable paging:
		ostream.disablePaging();
	}
}
Returns a callback to be invoked upon calling the `pager` command.

@private
@param {REPL} repl - REPL instance
@returns {Function} callback