strip escape codes from prompts

This commit is contained in:
Cynthia Foxwell 2022-09-02 18:21:00 -06:00
parent 7c692758ee
commit 3017a23be7
1 changed files with 1 additions and 0 deletions

View File

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