From 26882b51b2d879d2153f8895ff42165a7307364d Mon Sep 17 00:00:00 2001 From: Anonymous <52291420+AnonymousFromGeorgia@users.noreply.github.com> Date: Tue, 5 May 2020 18:47:10 +0400 Subject: [PATCH] Update Anonymous-Mail.py --- Anonymous-Mail.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Anonymous-Mail.py b/Anonymous-Mail.py index 914b293..8e2a3da 100644 --- a/Anonymous-Mail.py +++ b/Anonymous-Mail.py @@ -1,6 +1,17 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +import os +os.system('clear') + +import signal + +def keyboardInterruptHandler(signal, frame): + print("\nპროგრამა გაითიშა.".format(signal)) + exit(0) + +signal.signal(signal.SIGINT, keyboardInterruptHandler) + import pyfiglet result = pyfiglet.figlet_format("Anonymouse")