oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.68k stars 2.72k forks source link

Program cannot be killed on powershell using Ctrl + C #12694

Open txtyash opened 2 months ago

txtyash commented 2 months ago

What version of Bun is running?

1.1.13+bd6a60512

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Program cannot be killed on powershell using Ctrl+C

Steps to recreate

  1. Create a js file (index.js):
    
    import { input } from '@inquirer/prompts';

const branchName = await input({ message: Enter your name:, transformer: (input) => input.trim() }); console.log(branchName);



2. Run the file using bun js:
`> bun run index.js`

3. Attempt to kill the program by pressing `Ctrl+C`
    **Outcome:** Program does not terminate

### What is the expected behavior?

_No response_

### What do you see instead?

_No response_

### Additional information

Issue also created on the [Inquirer.js repository](https://github.com/SBoudrias/Inquirer.js)
https://github.com/SBoudrias/Inquirer.js/issues/1478
runspired commented 2 months ago

also seeing this using zsh in terminal on macos