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
The exact code I used to reproduce the issue is as follows:
import{search}from"@inquirer/prompts";importFusefrom"fuse.js";import{readdirSync}from"node:fs";import{basename}from"node:path";exportconstselectSpec=async(args: {spec: string})=>{if(args.spec.length>0){returnargs.spec;}constspecs=readdirSync("specs");constfuse=newFuse(specs,{});returnawaitsearch({message: "Select a spec",source: (input)=>{if(!input){return[];}constresults=fuse.search(input).map((result)=>basename(result.item));returnresults.map((spec)=>({name: spec,value: spec,}));},}).catch(()=>{process.exit(0);});};awaitselectSpec({spec: ""});
Running it with Node via npx tsx test.ts, entering a search query, and pressing Ctrl+C terminates the application as usual.
Running it with Bun via bun test.ts, entering a search query, and pressing Ctrl+C renders the console unresponsive and does not terminate the application.
What is the expected behavior?
Pressing Ctrl+C when running the code with Bun works
What do you see instead?
Pressing Ctrl+C when running the code with Bun renders the terminal unresponsive to input
Code_eJKx3V92sC.mp4
Additional information
PowerShell 7.5.0
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.2+c1708ea6a
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What steps can reproduce the bug?
The exact code I used to reproduce the issue is as follows:
Running it with Node via
npx tsx test.ts
, entering a search query, and pressing Ctrl+C terminates the application as usual.Running it with Bun via
bun test.ts
, entering a search query, and pressing Ctrl+C renders the console unresponsive and does not terminate the application.What is the expected behavior?
Pressing Ctrl+C when running the code with Bun works
What do you see instead?
Pressing Ctrl+C when running the code with Bun renders the terminal unresponsive to input
Code_eJKx3V92sC.mp4
Additional information
PowerShell 7.5.0
The text was updated successfully, but these errors were encountered: