From 5326fa8ae8bcf908647b289390d64d8daeb99d70 Mon Sep 17 00:00:00 2001 From: Jxck-S Date: Sun, 16 Aug 2020 12:53:32 -0400 Subject: [PATCH] Safer way to clear terminal --- NotifyBot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NotifyBot.py b/NotifyBot.py index acb5737..73f531d 100644 --- a/NotifyBot.py +++ b/NotifyBot.py @@ -1,8 +1,10 @@ #Github Updated - NotifyBot 11 #Import Modules #Clear Terminal -import os -os.system('cls' if os.name == 'nt' else 'clear') +print("\033[H\033[J") + +#Ability to Remove old Map +import os #Setup Geopy from geopy.geocoders import Nominatim geolocator = Nominatim(user_agent="OpenSkyBot", timeout=5)