Merge pull request 'fix: I am stupid and forgot to press enter' (#13) from 1.0.2 into main
Reviewed-on: #13
This commit is contained in:
commit
252863c813
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user