diff --git a/cli/prompts.ts b/cli/prompts.ts index 1d643d4..2bda21d 100644 --- a/cli/prompts.ts +++ b/cli/prompts.ts @@ -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]; diff --git a/deno.json b/deno.json index 687c07f..2665da8 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@bearmetal/pdf-tools", - "version": "1.0.5", + "version": "1.0.6", "license": "GPL 3.0", "tasks": { "dev": "deno run -A --env-file=.env main.ts",