Compare commits
4 Commits
123bf51001
...
v1.0.5
Author | SHA1 | Date | |
---|---|---|---|
cca6de1877 | |||
c0ce69af6f | |||
da80c4690b | |||
93df271f79 |
@@ -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;
|
||||
@@ -60,10 +59,6 @@ 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];
|
||||
|
Reference in New Issue
Block a user