tty-prompt
tty-prompt copied to clipboard
Select not working in windows + bash terminal
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)
The same is happening for multi_select
also