Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@clack/prompts gets stuck when multiple text prompts are used. #7033

Open
alexanderson1993 opened this issue Nov 10, 2023 · 0 comments
Open
Labels
bug Something isn't working needs investigate Needs to be investigated to find the root cause

Comments

@alexanderson1993
Copy link

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:

import { text } from "@clack/prompts";

await text({
  message: "What is your name?",
});
await text({
  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs investigate Needs to be investigated to find the root cause
Projects
None yet
Development

No branches or pull requests

2 participants