1

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.

Emlingur
  • 163
  • 8

1 Answers1

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