Skip to content

First REPL command as CTRL+C #3436

Closed
Closed
@tflanagan

Description

@tflanagan

Windows 10 Pro (64-bit)
Version 10.0.10240 Build 10240

$ node -v
v4.2.1
$ node
> ^C^C^C^C
# Doesn't detect the interrupt, allows me to keep hitting CTRL+C N times
# Hitting Enter after N CTRL+C registers the interupt, if N >= 2, exits
$ node
> ^C^C^C^C^C^C^C^C^C^C
# <Enter>
(^C again to quit)
>
# Says to hit it again, but it exits immediately
$ node
> ^C
# <Enter>
(^C again to quit)
>
>
(^C again to quit)
>

If the first command is not CTRL+C, it works as expected:

$ node
> 1 + 1
1 + 1
2
>
(^C again to quit)
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssues and PRs that are duplicates of other issues or PRs.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions