Skip to content

Make CTRL+C keyboard input stop the bot #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dreiekk opened this issue Apr 18, 2022 · 0 comments
Open

Make CTRL+C keyboard input stop the bot #54

dreiekk opened this issue Apr 18, 2022 · 0 comments
Assignees
Labels
💡New Feature Proposal for new implementation

Comments

@dreiekk
Copy link
Collaborator

dreiekk commented Apr 18, 2022

Description

By default a running python script can't be canceled by pressing CTRL+ C.
It'd be nice to be able to stop the bot when using a standalone terminal without closing the whole window.

Example situation

Nice to have when not using an IDE which handles the python process and starting the bot in a standalone command line window.

Additional context

Ctrl + C sends a signal, SIGINT, to the Python process, which the Python interpreter handles by raising the KeyboardInterrupt exception in the currently-running scope.

https://askubuntu.com/a/1222989/1154787

@dreiekk dreiekk added the 💡New Feature Proposal for new implementation label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡New Feature Proposal for new implementation
Projects
None yet
Development

No branches or pull requests

2 participants