Skip to content

Commit

Permalink
Only set raw mode if applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
bahamas10 committed Aug 19, 2012
1 parent 32ae554 commit 8078ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/bpm.js
Expand Up @@ -53,5 +53,5 @@ process.stdin.on('keypress', function(c, key) {
console.log(b.tap());
});

process.stdin.setRawMode(true);
if (process.stdin.setRawMode) process.stdin.setRawMode(true);
process.stdin.resume();

0 comments on commit 8078ccd

Please sign in to comment.