question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hitting CTRL+C while in Inquirer prompt breaks everything

See original GitHub issue

The 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:open
  • Created 8 years ago
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
dthreecommented, Feb 9, 2016

Got it. This one’s… gnarly. Will try to work on it some more soon.

1reaction
joseph1125commented, Feb 9, 2018

This problem still exists and breaks the REPL

Read more comments on GitHub >

github_iconTop 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 >
Bountysource
Hitting CTRL +C while in Inquirer prompt breaks everything.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found