We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62fa792 commit dd9aab0Copy full SHA for dd9aab0
prompt/_generic_prompt.ts
@@ -1,5 +1,6 @@
1
import type { Cursor } from "@cliffy/ansi/cursor-position";
2
import { type Tty, tty } from "@cliffy/ansi/tty";
3
+import { getRuntimeName } from "@cliffy/internal/runtime/runtime-name";
4
import { type KeyCode, parse } from "@cliffy/keycode";
5
import {
6
bold,
@@ -363,7 +364,7 @@ export abstract class GenericPrompt<
363
364
365
/** Read user input from stdin. */
366
#readChar = async (): Promise<Uint8Array> => {
- const buffer = new Uint8Array(8);
367
+ const buffer = new Uint8Array(getRuntimeName() === "deno" ? 8 : 4096);
368
const isTty = this.settings.reader.isTerminal();
369
370
if (isTty) {
0 commit comments