strip escape codes from prompts

This commit is contained in:
Cynthia Foxwell 2022-09-02 18:21:00 -06:00
parent 7c692758ee
commit 3017a23be7

View file

@ -134,6 +134,7 @@ process.stdin.on("data", async function (key) {
); );
} }
} else { } else {
key = key.replace("\u001b", "");
process.stdout.write(key); process.stdout.write(key);
comcord.state.promptInput += key; comcord.state.promptInput += key;
} }