hybridgroup / cylon

JavaScript framework for robotics, drones, and the Internet of Things (IoT)
https://cylonjs.com
Other
4.2k stars 360 forks source link

Exception: stdin.setRawMode is not a function #343

Closed shunanya closed 8 years ago

shunanya commented 8 years ago

I'm trying to run a simple example - 'keyboard' in Eclipse environment but unfortunately get the exceptional situation...

2016-05-23T05:44:29.918Z : [Robot 1] - Starting connection 'keyboard'.
/home/shunanya/Projects/_node/worksp_cylon/node_modules/cylon-keyboard/lib/keyboard.js:21
  stdin.setRawMode(true);
        ^
TypeError: stdin.setRawMode is not a function

When I'm starting the module in terminal (without eclipse) it's not fired the exception, but there isn't any reaction on keyboard keys clicks.

I use Node.js engine version 4.3.1 under Ubuntu 14. The 'cylon' and 'cylon-keyboard' node modules are installed.

Can someone tell me what I'm doing wrong here?

Thanks! Simon

shunanya commented 8 years ago

Ohh, sorry. It was my fault. Now the issue is resolved.