Hitting CTRL+C while in Inquirer prompt breaks everything
See original GitHub issueThe output looks like this:
(^C again to quit)
function (str) {
if (str === undefined) {
return this._delimiter;
}
this._delimiter = String(str).trim() + ' ';
if (this.isLocal()) {
this.parent.ui.refresh();
} else {
this.parent._send('vantage-delimiter-downstream', 'downstream', {value: str, sessionId: this.id});
}
return this;
}
_
You can still type but nothing happens. Only way to recover is hitting CTRL+C again.
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (13 by maintainers)
Top Results From Across the Web
Correct approach to intercepting CTRL-C #1030 - GitHub
Doing this gives me a way to handle CTRL-C and does not appear to be breaking Inquirer in any way that I can...
Read more >How to terminate npm inquirer prompt and return control to ...
I believe the cause is that by returning and calling main from within the inquirer validate function, inquirer does not call its build...
Read more >Creating a Node CLI with Enquirer - LogRocket Blog
If that happens to you, hit ctrl + c or close out of your terminal window. With that behind us, let's make our...
Read more >How To Work with Files Using Streams in Node.js - DigitalOcean
js). They emit different events you can listen for at various intervals during the data transmission process. The native stream module provides ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Got it. This one’s… gnarly. Will try to work on it some more soon.
This problem still exists and breaks the REPL