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

Arrow keys not working in any console. #5940

Closed
sant123 opened this issue Mar 28, 2016 · 16 comments
Closed

Arrow keys not working in any console. #5940

sant123 opened this issue Mar 28, 2016 · 16 comments
Labels
tty Issues and PRs related to the tty subsystem. windows Issues and PRs related to the Windows platform.

Comments

@sant123
Copy link

sant123 commented Mar 28, 2016

  • Version: v5.9.1
  • Platform: Windows 8.1 64 bits

Hi, I've found and error when I was working with Inquirer.js. The problem is that I can't move the checkbox options with the arrow keys. This works in v5.1.0 of Node.js but the problem comes in this version. I've read something regard with this here: #5384 and it seems the problem comes again.

You can check this following this example link: https://github.com/SBoudrias/Inquirer.js/blob/master/examples/checkbox.js

I've test this example in: CMD, GIT BASH and PowerShell.

@mscdex mscdex added windows Issues and PRs related to the Windows platform. tty Issues and PRs related to the tty subsystem. labels Mar 28, 2016
@mscdex
Copy link
Contributor

mscdex commented Mar 28, 2016

Does node master work? The tty patch you referenced should be included there.

@sant123
Copy link
Author

sant123 commented Mar 29, 2016

Tty patch? I'm sorry but I do not know what is that... In the other hand, I've tested the example above with v5.1.0 again and effectively work. Could you follow the steps I gave you in order to reproduce the issue? Thanks.

@mscdex
Copy link
Contributor

mscdex commented Mar 29, 2016

I meant if you check out the master branch for node, compile it, and try your code again, does it work for you?

@sant123
Copy link
Author

sant123 commented Mar 29, 2016

@mscdex I tested it with the master branch for Node and it didn't work 😢
@egoroof Ok ok, even with the nodeschool examples I had had that problem.

@egoroof

This comment was marked as abuse.

@sant123
Copy link
Author

sant123 commented Mar 30, 2016

O.o? But it was working! As the previous arrows key example until this new version appeared.

@sant123
Copy link
Author

sant123 commented Apr 4, 2016

A new release has appeared but the bug persist, now I have v5.10.0. Please look this related issue:
SBoudrias/Inquirer.js#303 as @Amberlamps said, it works if you add a simple boolean question.

@SalvatoreMeschini
Copy link

The issue seems to persist... Arrow keys do not work, tested with Node version: 5.7.0 on Windows 10 Pro 64 bit command prompt.

Npm version: 3.7.5
Yo: 1.7.0

@edgolub
Copy link

edgolub commented Apr 14, 2016

Same issue for me.

I've tested with Yo and generator-webapp here:

image

I also had the same issue with the learnyounode npm package I found on nodeschools.

I'm running Windows 10, Node & npm versions can be seen in the screenshot.

@jasnell
Copy link
Member

jasnell commented Apr 19, 2016

@nodejs/platform-windows @nodejs/ctc ... anyone have any ideas on this one? If there's an issue here it would be great to have it fixed for v6

@sant123
Copy link
Author

sant123 commented Apr 19, 2016

That's right, even I've tested with Yeoman and npm-check an sometimes work, for real. What you have to do is open, check if work, if not, then close and open again until it works. It's weird but it works, but in inquirer never worked.

@jasnell
Copy link
Member

jasnell commented Apr 19, 2016

@orangemocha ... I know you were investigating this. Any updates?

@orangemocha
Copy link
Contributor

I am investigating #5384. However, I cannot reproduce this issue so I am not sure if they are related.

@sant123 , could you please clarify the steps to reproduce the problem? I have tried:

npm install inquirer
node checkpoint.js

... with node v5.10.1. Arrow keys seem to work fine.

@sant123
Copy link
Author

sant123 commented Apr 19, 2016

Of course @orangemocha , what you have to do is copy the whole example from https://github.com/SBoudrias/Inquirer.js/blob/master/examples/checkbox.js and then call node checkbox.js. Also you can try with Yeoman(in some cases doesn't work) and npm-check.(the most of the cases doesn't work)

Just to clarify I'm using Windows 8.1 64 bits

@sant123
Copy link
Author

sant123 commented Apr 19, 2016

Here is my test of Inquirer.js. main.txt
However is something curious, if you uncomment the code:

  {
    type: "confirm",
    name: "mood",
    message: "Are you feeling alright?",
    default: true
  }

The program works! But is not a good solution.

@jasnell
Copy link
Member

jasnell commented Apr 22, 2016

Closing as a duplicate of #5384. The issue still exists we just don't need multiple issues open for it! The issue is still being investigated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tty Issues and PRs related to the tty subsystem. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

7 participants