title: Console application on Cloud9 instantly returning to prompt
body: <p>I'm trying to create a code-gen like Yeoman in <a href="http://c9.io/" rel="nofollow noreferrer">Cloud9</a> yet for some reason my console instantly returns back to the prompt. </p>
  
  <p>Yeoman is awesome and has figured out how to get passed this problem yet everything I try instantly returns.</p>
  
  <pre><code>var prompt = require('prompt');
  prompt.start();
  prompt.get(['username', 'email'], function(err, result) {
      if (err) {
          return onErr(err);
      }
      console.log('Command-line input received:');
      console.log('  Username: ' + result.username);
      console.log('  Email: ' + result.email);
  });
  function onErr(err) {
      console.log(err);
      return 1;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/TrFVJ.png" alt="scr"></p>