GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — keypress events not working in windows cmd.exe & powershell · Issue #5384 · nodejs/node

keypress events not working in windows cmd.exe & powershell #5384

New issue
Copy link
New issue
Copy link
Closed
#6796
Closed
keypress events not working in windows cmd.exe & powershell#5384
#6796
Copy link
Assignees
MylesBorins
Labels
confirmed-bugIssues and PRs for confirmed bugs.ttyIssues and PRs related to the tty subsystem.windowsIssues and PRs related to the Windows platform.

Description

@egoroof
egoroof
opened on Feb 23, 2016
Issue body actions
  • Version: 5.7.0
  • Platform: windows 10 x64
  • Subsystem: streams?

I make commits using cz-cli (it uses arrow keys for selection). Just updated node to 5.7.0 (from 5.6.0) on windows 10 and now arrow keys (upd also Ctrl+C and maybe something other) not working in command line. Pressing arrow keys does nothing (like keypress event doesn't happen).

Guess it related #2996.

Activity

Next
  1. mscdex
    added
    readlineIssues and PRs related to the built-in readline module.
    windowsIssues and PRs related to the Windows platform.
    on Feb 23, 2016
  2. Fishrock123 commented on Feb 23, 2016

    @Fishrock123
    Fishrock123
    on Feb 23, 2016
    Contributor
    More actions

    @egoroof What terminal are you using?

  3. egoroof commented on Feb 23, 2016

    @egoroof
    egoroof
    on Feb 23, 2016 · Hidden as abuse
    Author
    show commentMore actions
  4. Fishrock123
    changed the title [-]arrow keys stopped working after update to 5.7.0[/-] [+]arrow keys not working in windows cmd.exe[/+] on Feb 23, 2016
  5. rvagg commented on Feb 24, 2016

    @rvagg
    rvagg
    on Feb 24, 2016
    Member
    More actions

    possibly related report from nodeschool nodeschool/discussions#1641

    someone needs to bisect this one, @nodejs/platform-windows can anyone repro?

  6. egoroof commented on Feb 24, 2016

    @egoroof
    egoroof
    on Feb 24, 2016 · Hidden as abuse
    Author
    show commentMore actions
  7. rvagg commented on Feb 24, 2016

    @rvagg
    rvagg
    on Feb 24, 2016
    Member
    More actions

    @egoroof if you can set yourself up with a development environment to compile and test Node on your Windows machine then you could help track down exactly where the bug was introduced. git bisect is a great tool to learn if you haven't before, you need to come up with a good test, manual or automatic, to tell you if a version of Node is broken or not then find a spot in the git history where it's not broken then use git bisect to identify the actual commit where the breakage started and we can go from there.

    Unless anyone in here has a better idea of where we can narrow this down to.

  8. eljefedelrodeodeljefe commented on Feb 24, 2016

    @eljefedelrodeodeljefe
    eljefedelrodeodeljefe
    on Feb 24, 2016
    Contributor
    More actions

    @egoroof if you could reproduce without external dependencies like commitizen that would be great. In the referenced issue, there are already examples. I can reproduce some. Trying to get gdb running on windows and hunt this bug down, too.

  9. egoroof commented on Feb 24, 2016

    @egoroof
    egoroof
    on Feb 24, 2016 · Hidden as abuse
    Author
    show commentMore actions
  10. rvagg commented on Feb 24, 2016

    @rvagg
    rvagg
    on Feb 24, 2016
    Member
    More actions

    if it is to do with streams then it may be in one of the commits that have touched the streams code since v5.5.0:

    7684b0f stream: fix no data on partial decode
    f706cb0 streams: 5% throughput gain when sending small chunks
    ee8d4bb stream: prevent object map change in TransformState
    c8b6de2 stream: refactor redeclared variables

    Only the last two in that list were in between v5.5.0 and v5.6.0. You could try backing them each out and see if it makes a difference.

    Also, /cc @nodejs/streams

  11. calvinmetcalf commented on Feb 24, 2016

    @calvinmetcalf
    calvinmetcalf
    on Feb 24, 2016
    Contributor
    More actions

    the second to last one is the only one that actually changes anything so I somewhat doubt the problem lies there

  12. egoroof commented on Feb 26, 2016

    @egoroof
    egoroof
    on Feb 26, 2016 · Hidden as abuse
    Author
    show commentMore actions
  13. rvagg commented on Feb 26, 2016

    @rvagg
    rvagg
    on Feb 26, 2016
    Member
    More actions

    Thanks for investigating @egoroof, what we first need to do is figure out how on earth c-ares could be implicated on processing stdin on Windows, and if that is indeed the cause of the bug, how do we fix it?

    /cc @indutny @saghul (since you merged and reviewed that patch ... just in case you might have a clue here)

  14. indutny commented on Feb 26, 2016

    @indutny
    indutny
    on Feb 26, 2016
    Member
    More actions

    Wow, this is a bit unexpected. I will take a look.

  15. 93 remaining items

  16. jokeyrhyme commented on Jun 2, 2016

    @jokeyrhyme
    jokeyrhyme
    on Jun 2, 2016
    More actions

    @martinheidegger the following SemVer range should hopefully match any

    • known-broken: >=4.0 <4.2 || >=5.0 <5.3 || >=5.6 <6.2
    • known fixed: <4 || >=4.2 <5 || >=5.3 < 6 || >= 6.2

    I did consider a runtime feature-detection approach, but some of the earlier reports made it seem non-deterministic.

    I'll put together a package to just do a SemVer comparison against the node version unless someone else beats me to it. :)

  17. jokeyrhyme commented on Jun 2, 2016

    @jokeyrhyme
    jokeyrhyme
    on Jun 2, 2016
    More actions

    @martinheidegger here we go:

    • https://github.com/jokeyrhyme/is-node-interactive-tty-broken
    • https://www.npmjs.com/package/is-node-interactive-tty-broken

    Feel free to let me know if it has any false-positives / false-negatives for you. :)

  18. saghul
    added a commit that references this issue on Jul 11, 2016

    deps: upgrade libuv to 1.9.1

    e2bc22e
  19. MylesBorins
    added 5 commits that reference this issue on Jul 11, 2016

    deps: upgrade libuv to 1.9.1

    2713f7f

    deps: upgrade libuv to 1.9.1

    45bbe0a

    deps: upgrade libuv to 1.9.1

    26e9115

    deps: upgrade libuv to 1.9.1

    eaab802

    deps: upgrade libuv to 1.9.1

    da7b74b
  20. sjarmak
    added a commit that references this issue on Jul 27, 2026

    tty: don't read from console stream upon creation

    4611389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @MylesBorins
    MylesBorins

Labels

confirmed-bugIssues and PRs for confirmed bugs.ttyIssues and PRs related to the tty subsystem.windowsIssues and PRs related to the Windows platform.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.