fix backspace on linux

This commit is contained in:
Cynthia Foxwell 2022-08-28 17:20:01 -06:00
parent 985d651309
commit bf1a94bc19
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ process.stdin.on("data", async function (key) {
await finalizePrompt(); await finalizePrompt();
processQueue(); processQueue();
} else { } else {
if (key === "\b") { if (key === "\b" || key === "\u007f") {
if (comcord.state.promptInput.length > 0) { if (comcord.state.promptInput.length > 0) {
process.stdout.moveCursor(-1); process.stdout.moveCursor(-1);
process.stdout.write(" "); process.stdout.write(" ");