tty-prompt icon indicating copy to clipboard operation
tty-prompt copied to clipboard

Select not working in windows + bash terminal

Open Anay-v2 opened this issue 3 years ago • 1 comments

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

  • OS version: Windows 10 Pro version 21H1
  • Ruby version: ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x64-mingw32]
  • TTY::Prompt version: Newest (according to me as i only installed it today)

Anay-v2 avatar Nov 24 '21 05:11 Anay-v2

The same is happening for multi_select also

Anay-v2 avatar Nov 24 '21 05:11 Anay-v2