fix: I am stupid and forgot to press enter

This commit is contained in:
2025-05-21 12:26:40 -06:00
parent b43a837c6a
commit a858ea4b60
2 changed files with 5 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ export async function cliPrompt(
Deno.exit(130);
}
if (byte === 13) { // Enter
break;
}
// Escape sequence?
if (byte === 27 && i + 1 < n && buf[i + 1] === 91) {
const third = buf[i + 2];