Added SIGQUIT

This commit is contained in:
Logan G 2023-12-02 23:22:52 -07:00
parent 25e143d406
commit 2b407587e8
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -3,6 +3,13 @@ import time
import math import math
import random import random
import colorsys import colorsys
import signal
import sys
def signal_handler(sig, frame):
sys.exit(0)
signal.signal(signal.SIGQUIT, signal_handler)
# Initialize Pygame # Initialize Pygame
pygame.init() pygame.init()