From 5178cd14ac16e19f3006831b9dfae99b5217fb12 Mon Sep 17 00:00:00 2001 From: mhmdanas Date: Wed, 29 Mar 2023 22:41:59 +0100 Subject: [PATCH] Make Ctrl-C start new line instead of exiting Insect Fixes #369. --- index.dev.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.dev.js b/index.dev.js index 97c9322..756d8e8 100755 --- a/index.dev.js +++ b/index.dev.js @@ -142,6 +142,9 @@ async function startInsect() { } } + rl.prompt(); + }).on('SIGINT', function() { + rl.clearLine(); rl.prompt(); }).on('close', function() { process.exit(0);