Skip to content
Myr

[fix] tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode())

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Joshua Holbrook · committed by Joshua Holbrook · parent cc966f6 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:lib/commander.js+2 added-2 removed
866 unmodified lines
867 mask = '';868 }869870 process.stdin.resume();871 tty.setRawMode(true);871 process.stdin.setRawMode(true);872 process.stdout.write(str);873874 // keypress875 process.stdin.on('keypress', function(c, key){876 if (key && 'enter' == key.name) {877 console.log();878 process.stdin.removeAllListeners('keypress');879 tty.setRawMode(false);879 process.stdin.setRawMode(false);880 if (!buf.trim().length) return self.password(str, mask, fn);881 fn(buf);882 return;883 }
148 unmodified lines