Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select not working in windows + bash terminal #179

Open
Anay-v2 opened this issue Nov 24, 2021 · 1 comment
Open

Select not working in windows + bash terminal #179

Anay-v2 opened this issue Nov 24, 2021 · 1 comment

Comments

@Anay-v2
Copy link

Anay-v2 commented Nov 24, 2021

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
Copy link
Author

Anay-v2 commented Nov 24, 2021

The same is happening for multi_select also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant