Skip to content

Commit

Permalink
Make Ctrl-C start new line instead of exiting Insect
Browse files Browse the repository at this point in the history
Fixes #369.
  • Loading branch information
triallax authored and sharkdp committed Apr 2, 2023
1 parent f363c9d commit 252a6c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ async function startInsect() {
}
}

rl.prompt();
}).on('SIGINT', function() {
rl.clearLine();
rl.prompt();
}).on('close', function() {
process.exit(0);
Expand Down

0 comments on commit 252a6c0

Please sign in to comment.