You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter what version of io.js or node.js I used this morning, this wasn't working. Now running this code again, it is working. Maybe it was something to do with my terminal configuration. This is working fine for me now, sorry for the trouble.
In io.js 2.3.3 process.stdin.setRawMode is not a defined function. The docs here contradict this: https://iojs.org/api/tty.html#tty_tty_setrawmode_mode
When trying to use tty.setRawMode(true) the following message is received:
(node) tty.setRawMode is deprecated. Use process.stdin.setRawMode instead.
This means stdin can only be used in buffered mode, the ability to create 'keypress' events as recreated by @TooTallNate is not possible without this.
The text was updated successfully, but these errors were encountered: