From 1e803d87ca795210641e21a973e0bad7bf4334bb Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sat, 26 Aug 2023 22:34:08 -0500 Subject: [PATCH] disabled ctrl+c modified: main.py --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 133335f..1ed8cfb 100644 --- a/main.py +++ b/main.py @@ -9,6 +9,13 @@ import ast if os.name != "nt": import readline import threading +import signal + +def handler(signum, frame): + return + +# Set the signal handler +signal.signal(signal.SIGINT, handler)