Skip to content

Conversation

@crydafan
Copy link

Add a handleSigint option to readline.createInterface() that allows users to disable SIGINT signal handling. When set to false, pressing Ctrl+C will terminate the process with the appropriate exit code instead of being trapped by readline and treated as EOF.

The option defaults to true to maintain backward compatibility.

Fixes #61487.

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. readline Issues and PRs related to the built-in readline module. labels Jan 25, 2026
@crydafan
Copy link
Author

This is my first PR, I'd appreciate your time and interest if you have any recommendations. I haven't updated the docs yet because this change could be out of the scope and left intentionally for the user to handle. Thank you kindly.

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

Labels

needs-ci PRs that need a full CI run. readline Issues and PRs related to the built-in readline module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option not to trap SIGINT (Ctrl + C) to readline.creatInterface

2 participants