2 Commits

Author SHA1 Message Date
123bf51001 fix: I really am thick 2025-05-21 12:55:45 -06:00
a858ea4b60 fix: I am stupid and forgot to press enter 2025-05-21 12:26:40 -06:00
2 changed files with 6 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ export async function cliPrompt(
render();
const buf = new Uint8Array(64); // large enough for most pastes
inputLoop:
while (true) {
const n = await Deno.stdin.read(buf);
if (n === null) break;
@@ -59,6 +60,10 @@ export async function cliPrompt(
Deno.exit(130);
}
if (byte === 13) { // Enter
break inputLoop;
}
// Escape sequence?
if (byte === 27 && i + 1 < n && buf[i + 1] === 91) {
const third = buf[i + 2];

View File

@@ -1,6 +1,6 @@
{
"name": "@bearmetal/pdf-tools",
"version": "1.0.5",
"version": "1.0.7",
"license": "GPL 3.0",
"tasks": {
"dev": "deno run -A --env-file=.env main.ts",