Curses keeps closing my program every time I do a CTRL + c, how do I prevent that from happening? I tried disabling the keypad, going into raw and noraw mode, but it keeps happening.
Asked
Active
Viewed 1,675 times
1 Answers
3
The program needs to handle the signal SIGINT. You can research Signal Handling in python and reference this related question: How do I capture SIGINT in Python?

Community
- 1
- 1

Steven Whaley
- 109
- 7