Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Conversation

@ryan-roemer
Copy link
Member

this.screen.ignoreLocked = ["C-c"];
this.screen.key("C-c", () => {
process.exit(0); // eslint-disable-line no-process-exit
process.kill(process.pid, "SIGINT");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep this looks right! The only thing we did different in webpack-dashboard was listen for "escape" and "q" as valid keys to trigger sending SIGINT. We could consider doing that here as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Added #106 to allow some discussion first.

Copy link

@parkerziegler parkerziegler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! One smol comment about supporting other keys to send SIGINT which we can take or leave.

@ryan-roemer ryan-roemer merged commit 1ef0be4 into master Nov 22, 2019
@ryan-roemer ryan-roemer deleted the bug/global-require branch November 22, 2019 18:51
@ryan-roemer
Copy link
Member Author

Released in nodejs-dashboard@0.5.1

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: Cannot find module 'nodejs-dashboard'

3 participants