Compare commits
No commits in common. "343c36a9f0864ee780a5a3e760a4ff98fa7bad41" and "252863c813c3a2341e5c3887683e084a7d9f4ef9" have entirely different histories.
343c36a9f0
...
252863c813
@ -44,7 +44,6 @@ 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;
|
||||
@ -61,7 +60,7 @@ export async function cliPrompt(
|
||||
}
|
||||
|
||||
if (byte === 13) { // Enter
|
||||
break inputLoop;
|
||||
break;
|
||||
}
|
||||
|
||||
// Escape sequence?
|
||||
|
Loading…
x
Reference in New Issue
Block a user