You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{text}from"@clack/prompts";awaittext({message: "What is your name?",});awaittext({message: "What is your favorite color?",});
Run bun index.ts
Type text into the first prompt in the terminal. Press enter.
Type text into the second prompt in the terminal. Press enter.
What is the expected behavior?
The text for the second prompt should be entered immediately below the prompt text itself, within the colored bracket. Pressing enter should submit the prompt and exit the process.
What do you see instead?
The text appears below the colored bracket. Pressing enter adds a new line to the terminal, but does not submit the prompt or exit the process.
Additional information
It behaves as expected when run with Node.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.0.11+f7f6233ea
What platform is your computer?
Darwin 22.6.0 x86_64 i386
What steps can reproduce the bug?
Create a new project folder.
Run
bun add @clack/prompts
Create an
index.ts
file and add the following:Run
bun index.ts
Type text into the first prompt in the terminal. Press enter.
Type text into the second prompt in the terminal. Press enter.
What is the expected behavior?
The text for the second prompt should be entered immediately below the prompt text itself, within the colored bracket. Pressing enter should submit the prompt and exit the process.
What do you see instead?
The text appears below the colored bracket. Pressing enter adds a new line to the terminal, but does not submit the prompt or exit the process.
Additional information
It behaves as expected when run with Node.
The text was updated successfully, but these errors were encountered: