Skip to content

@inquirer/select is only showing the first choice in Powershell and Git Bash #1783

@CarbonCollins

Description

@CarbonCollins

Hi,

Not sure if its supported but we have some users who use Powershell and Git Bash in our team. when it comes to them being presented with the following prompt:

      const type = await select<ExecutorType>({
        message: 'Select setup type',
        choices: [
          { name: 'Classic', value: 'classic' },
          { name: 'Multi-Station', value: 'multi-station' }
        ],
        default: 'classic'
      });

They only see the first option like so:
Image

They are able to use the arrow keys and navigate to the 2nd option and press enter, however the terminal does not update to show this.

Doing the same in my WSL instance with a zsh terminal It correctly renders the list and updates when pressing the arrow keys like so:

Image

Edit: I have tested this with versions 7.4.0 -> 7.6.0 and get the same issue on each of them

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions