Describe the bug
When using this library with Bun, the terminal behaves strangely.
It shifts the "answer" below the prompt, and everything you type gets duplicated as shown on the screenshot:
It's not just a visual bug, after pressing ENTER the return value of the prompt is undefined.
import { text } from "@clack/prompts";
await text({message: "foobar"});
Run bun index.ts
Type anything
Expected behavior
The terminal should not be "shifted", the typed letters shouldn't get duplicated and the return value should be string.
Additional Information
I am not sure if how important this bug is, depending on how much do you want to support Bun, if even. But considering how popular is Bun getting, and how great it is, I would think about it. Also I don't even know if it's a Bun issue or clack issue.
I tried downloading older versions of both Bun and clack, same result.
Environment
@clack/prompts
,@clack/core
Describe the bug When using this library with
Bun
, the terminal behaves strangely.It shifts the "answer" below the prompt, and everything you type gets duplicated as shown on the screenshot: It's not just a visual bug, after pressing
ENTER
the return value of the prompt isundefined
.To Reproduce Steps to reproduce the behavior:
bun
(https://bun.sh/)bun init
index.ts
:bun index.ts
Expected behavior The terminal should not be "shifted", the typed letters shouldn't get duplicated and the return value should be string.
Additional Information I am not sure if how important this bug is, depending on how much do you want to support Bun, if even. But considering how popular is Bun getting, and how great it is, I would think about it. Also I don't even know if it's a Bun issue or clack issue.
I tried downloading older versions of both Bun and clack, same result.