Under what scenario does process.stdin.setRawMode() not exist? We only support Node.js 0.8 and newer. I believe that in Node.js 0.6 you would use tty.setRawMode(), but that's all deprecated now.
Michael has seen this problem on his machine that setRawMode() method is unrecognized though he has node 0.10.13. So, added a guard to prevent this issue on similar machines.
Under what scenario does process.stdin.setRawMode() not exist? We only support Node.js 0.8 and newer. I believe that in Node.js 0.6 you would use tty.setRawMode(), but that's all deprecated now.