SBoudrias/Inquirer.js — pull request #52 by danielchatfield (2013-07-28 13:24:42+00:00)
Title: Fix bug to correctly keep readline Interface instantiated.

@SBoudrias I have found the bug, turns out all the blocking code is already in place and working fine and it was this pesky code bug:

(Only showing problem code)
```javascript
cli.prompt = function( questions, allDone ) {
/* ... */
this.rl || (this.rl = readlineFacade.createInterface());
this.rl.resume();
/* ... */
var onCompletion = function() {
/* ... */
this.rl.close();
this.rl = null;
/* ... */
}
/* ... */
}
```

As you can see resume() is called on readline even though there is no pause implemented. In fact as it stands it is not possible for readline to be present since it always get's destroyed in onCompletion.

To fix this we should call `this.rl.pause();` and remove the line that destroys the readline Interface.