javascript - Unable to setRawMode in a nodejs script -
initially tried set raw mode using tty.setrawmode(true)
log told me deprecated , should using process.stdin.setrawmode(true)
command giving me typeerror: object #<socket> has no method 'setrawmode'
cant seem find else in way of raw mode documentation suggests other apporoaches know how working?
i using version 0.10.25
so turns out nodemon uses child_process, because of writing process.stdin.setrawmode(true);
in script run nodemon result in typeerror: object #<socket> has no method 'setrawmode'
.
Comments
Post a Comment