appcelerator-archive / titanium-code-processor

Other
29 stars 18 forks source link

TISTUD-5129 Fixing stdin.setRawMethod error #229

Closed pinnamur closed 11 years ago

cb1kenobi commented 11 years ago

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.

pinnamur commented 11 years ago

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.