Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stroncium committed Sep 26, 2019
1 parent 8779c68 commit 9ccded8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,13 @@ class Ora {

stdin.setRawMode(true);
stdin.on('data', noop);
stdin.resume();

const self = this;
stdin.emit = function (event, data, ...args) {
if (event === 'keypress') { // Fixes readline behavior
return;
}
if (event === 'data' && data.includes(ASCII_ETX_CODE)) {
process.emit('SIGINT');
}
Expand Down

0 comments on commit 9ccded8

Please sign in to comment.