fix backspace on linux
This commit is contained in:
parent
985d651309
commit
bf1a94bc19
1 changed files with 1 additions and 1 deletions
|
@ -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(" ");
|
||||||
|
|
Loading…
Reference in a new issue