piotrmurach / tty-prompt

A beautiful and powerful interactive command line prompt
https://ttytoolkit.org
MIT License
1.47k stars 136 forks source link

Select not working in windows + bash terminal #179

Open Anay-v2 opened 2 years ago

Anay-v2 commented 2 years ago

Describe the problem

The select feature does not work on windows + bash terminal. When you try to navigate using arrow keys, the hint disappears and it doesn't let you move. When you press enter it selects the first option only.

Steps to reproduce the problem

Here is my code:

   require "tty-prompt"

prompt = TTY::Prompt.new

prompt.select("Choose your destiny?", %w(Scorpion Kano Jax))

I installed this package with gem install tty-prompt

Actual behaviour

It didn't let me move and by default selected option 1.

Expected behaviour

I expected it to allow me to move normally and only select the option i hovered on.

Describe your environment

Anay-v2 commented 2 years ago

The same is happening for multi_select also