Permalink
Browse files

README++

  • Loading branch information...
1 parent 3075dcc commit 1c5d9133212258099a812cdd54f1993aa8efccf3 @TooTallNate committed Jul 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -39,7 +39,7 @@ keypress(process.stdin);
// listen for the "keypress" event
process.stdin.on('keypress', function (ch, key) {
console.log('got "keypress"', key);
- if (key.ctrl && key.name == 'c') {
+ if (key && key.ctrl && key.name == 'c') {
process.stdin.pause();
}
});

0 comments on commit 1c5d913

Please sign in to comment.