Skip to content

Make CTRL+C keyboard input stop the bot #54

@dreiekk

Description

@dreiekk

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

Metadata

Metadata

Assignees

Labels

💡New FeatureProposal for new implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions