Electron Readline
<p>I'm trying to build an app using electron, it's designed to get a GUI later but for now i'm just trying to do this: </p>

<pre><code>function test(){

  console.log("In Test")

  var readline = require('readline');
  var rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
  });

  rl.on('line', function(line){
    console.log(line);
  })

}

// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
app.on('ready', test);
</code></pre>

<p>On launching <code>npm start</code>, I see the "<code>In Test</code>" log, but when I type something in my shell, it's not returned to me as I need it to be by the Readline module.</p>

<p>Am I missing something ?</p>