Code Monkey home page Code Monkey logo

Comments (8)

ChiriVulpes avatar ChiriVulpes commented on August 13, 2024 4

AFAIK, this is still an issue, should it be reopened as a bug on nodejs/node? Having troubles getting it to work correctly on Node 5.7.1, Windows 10.

from help.

ChiriVulpes avatar ChiriVulpes commented on August 13, 2024 2

If anyone is still watching this issue, a fix is incoming: libuv/libuv#866

from help.

Knighton910 avatar Knighton910 commented on August 13, 2024

http://stackoverflow.com/questions/17470554/how-to-capture-the-arrow-keys-in-node-js

screen shot 2015-12-17 at 12 27 35 pm

from help.

Knighton910 avatar Knighton910 commented on August 13, 2024

There is some minor depreciation going on here. πŸ‘Ž
screen shot 2015-12-17 at 12 29 09 pm

πŸ‘

But there pointing @ this
screen shot 2015-12-17 at 12 30 35 pm

from help.

john32b avatar john32b commented on August 13, 2024

Just tested the keypress package, same problem, It awaits an initial ENTER input, then it works normally.

I think the deprecated calls are for the TTY object, they suggest to call process.stdin. which is what I do ??

Perhaps it's on my end? But it's the same on 2 computers. Windows 10 and Windows 8.1.

I have a TUI lib that I was developing a year ago with node 0.10.0. But since I got back to it and decided to upgrade it to support the new nodes, that's where this problem came it.

It worked perfectly with older node versions, which is something to make be believe that this is a bug?

from help.

john32b avatar john32b commented on August 13, 2024

As a temporary solution I request an enter keystroke at the beginning of the program.
image

The user presses enter and then stdin raw captures the keys normally.

from help.

Knighton910 avatar Knighton910 commented on August 13, 2024

Yeah, the temporary solution is good, but It's a weird problem. Well alright then let me know if you wish further help.

from help.

john32b avatar john32b commented on August 13, 2024

Will do, thanks! 😺

from help.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.