fix: I really am thick
This commit is contained in:
parent
a858ea4b60
commit
123bf51001
@ -44,6 +44,7 @@ export async function cliPrompt(
|
|||||||
render();
|
render();
|
||||||
|
|
||||||
const buf = new Uint8Array(64); // large enough for most pastes
|
const buf = new Uint8Array(64); // large enough for most pastes
|
||||||
|
inputLoop:
|
||||||
while (true) {
|
while (true) {
|
||||||
const n = await Deno.stdin.read(buf);
|
const n = await Deno.stdin.read(buf);
|
||||||
if (n === null) break;
|
if (n === null) break;
|
||||||
@ -60,7 +61,7 @@ export async function cliPrompt(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (byte === 13) { // Enter
|
if (byte === 13) { // Enter
|
||||||
break;
|
break inputLoop;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Escape sequence?
|
// Escape sequence?
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bearmetal/pdf-tools",
|
"name": "@bearmetal/pdf-tools",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"license": "GPL 3.0",
|
"license": "GPL 3.0",
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"dev": "deno run -A --env-file=.env main.ts",
|
"dev": "deno run -A --env-file=.env main.ts",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user