Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: process.stdin.setRawMode is not a function #23

Closed
temp3l opened this issue Dec 17, 2016 · 2 comments
Closed

TypeError: process.stdin.setRawMode is not a function #23

temp3l opened this issue Dec 17, 2016 · 2 comments
Assignees
Milestone

Comments

@temp3l
Copy link

temp3l commented Dec 17, 2016

Hi,

I was trying to run this awesome tool from a bash inotifywait script.

and got:

nodemcu-tool/lib/SerialTerminal.js:53
            process.stdin.setRawMode(true);
                          ^

TypeError: process.stdin.setRawMode is not a function

I added this in line ~53

 if(process.stdin.isTTY) {
            process.stdin.setRawMode(true);
 }
@AndiDittrich
Copy link
Owner

Dear stephan,

thanks for your report. i will fix it asap.

btw. what is your use case for the terminal command in combination with a bash script ? i've never intended to use the terminal mode in this way ;)

best regards, Andi

@temp3l
Copy link
Author

temp3l commented Jan 17, 2017

thank you!
i used it with a "file-changed"-watcher to auto upload after saving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants