bun icon indicating copy to clipboard operation
bun copied to clipboard

Bun on windows, inquirer list press the direction key does not work

Open QingFengGod opened this issue 10 months ago • 5 comments

What version of Bun is running?

1.1.0

What platform is your computer?

windows x64

What steps can reproduce the bug?

const answers = await inquirer.prompt([ { type: 'list', name: 'type', message: '项目类型', default: 'vue', choices: [ { name: 'vue', value: 'vue' }, { name: 'react', value: 'react' }, { name: 'jq', value: 'jq' }, ]
} ])

What is the expected behavior?

Press the up and down keys to move the option

What do you see instead?

Press the arrow button to display the history, Press the direction button without any reaction.

Additional information

No response

QingFengGod avatar Apr 03 '24 01:04 QingFengGod

+1 Can confirm that it happens to me as well. Also prevents cancelling execution with Ctrl C, meaning that you need to restart the terminal. Also happens in cmd, powershell and git bash.

AwesomeKalin avatar Apr 03 '24 08:04 AwesomeKalin

+1 also with shad-cn/ui

bunx --bun shadcn-ui@latest init will not have it's up / down selection work

MuellerMarvin avatar Apr 03 '24 23:04 MuellerMarvin

+1 same


bunx --bun create-next-app@latest my-app --typescript --tailwind --eslint

Left/Right key not work. Not able to choose

sanjithacks avatar Apr 05 '24 08:04 sanjithacks

+1 Sometimes I also have to press the "ENTER" button twice to confirm

blk-raffy avatar Apr 06 '24 13:04 blk-raffy

image

It also break when some process ends, the enter button just create other lines instead of terminating the guided step

blk-raffy avatar Apr 06 '24 13:04 blk-raffy

Probably having this issue too with create-expo-app. Arrows not moving selected option. Impossible to ctrl+c it on this step. But accepting selected option works, and it becomes possible to ctrl+c it on next step. image

Arctomachine avatar Apr 11 '24 22:04 Arctomachine

Same here. Running a fresh bun project with latest @inquirer/prompts version. A lot of issues with most prompts.

ianram0s avatar Apr 12 '24 00:04 ianram0s

+1 here, waiting to be fixed XD

heerheer avatar Apr 13 '24 11:04 heerheer