bombshell-dev / clack

Effortlessly build beautiful command-line apps
https://clack.cc
5.23k stars 88 forks source link

[Bug] Bun Incompatibility #159

Closed DrWarpMan closed 10 months ago

DrWarpMan commented 10 months ago

Environment

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: image It's not just a visual bug, after pressing ENTER the return value of the prompt is undefined.

To Reproduce Steps to reproduce the behavior:

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.

DrWarpMan commented 10 months ago

Nevermind, it's already fixed in the upcoming Bun release.