From 91fe780ef01fa3c2a40cf8ef2aac1e92c0773f58 Mon Sep 17 00:00:00 2001 From: ShortEmperor Date: Mon, 7 Oct 2019 18:09:20 -0500 Subject: [PATCH] Maybe for Termux? --- Main.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Main.py b/Main.py index cb04850..fefc38e 100644 --- a/Main.py +++ b/Main.py @@ -4,9 +4,7 @@ def main(): try: - #Comment the following lines if not in windows - os.system("cls") - os.system("color 0A") + os.system("clear") print("Definicion de la Matriz") @@ -54,20 +52,17 @@ def main(): if rep.upper() == "S": main() elif rep.upper() == "N": - os.system("cls") - os.system("color 07") + os.system("clear") exit() else: print("Not a real option, exiting!") exit() #Handle Keyboard Interrupt error except KeyboardInterrupt as ManualExit: - #Change to "clear" if in linux or IOS - os.system("color 07") - os.system("cls") + + os.system("clear") exit() finally: - os.system("color 07") exit() if __name__=="__main__":