 <p>Before using the "prompt" module, I used the ReadLine interface; sadly I had the same problem. However, the fix was simple:</p> <blockquote> <p>Remove the <code>rli.close();</code> and then run it.</p> <p>Then re-add the <code>rli.close();</code> and it works!</p> </blockquote> <p>Thanks mscdex for the input, though :)</p>