From bf1a94bc19a8a8e2726db13a026c21d4bf35241a Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 28 Aug 2022 17:20:01 -0600 Subject: [PATCH] fix backspace on linux --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 781799c..1355832 100644 --- a/src/index.js +++ b/src/index.js @@ -121,7 +121,7 @@ process.stdin.on("data", async function (key) { await finalizePrompt(); processQueue(); } else { - if (key === "\b") { + if (key === "\b" || key === "\u007f") { if (comcord.state.promptInput.length > 0) { process.stdout.moveCursor(-1); process.stdout.write(" ");