From 3017a23be73cd3769a5bfde295c0d05c0cbacc4a Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 2 Sep 2022 18:21:00 -0600 Subject: [PATCH] strip escape codes from prompts --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 9361e8f..1ac9ac3 100644 --- a/src/index.js +++ b/src/index.js @@ -134,6 +134,7 @@ process.stdin.on("data", async function (key) { ); } } else { + key = key.replace("\u001b", ""); process.stdout.write(key); comcord.state.promptInput += key; }