From e136283a71e43820f572b2eaa366cb6160a5c3b8 Mon Sep 17 00:00:00 2001 From: Alan Mason <1923621+2Shirt@users.noreply.github.com> Date: Thu, 30 Nov 2017 14:40:44 -0800 Subject: [PATCH] Added clear_screen() --- Scripts/functions/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/functions/common.py b/Scripts/functions/common.py index a0453a95..d20a9ea6 100644 --- a/Scripts/functions/common.py +++ b/Scripts/functions/common.py @@ -81,6 +81,10 @@ def ask(prompt='Kotaero!'): print_log(message=message) return answer +def clear_screen(): + """Simple wrapper for cls.""" + os.system('cls') + def convert_to_bytes(size): """Convert human-readable size str to bytes and return an int.""" size = str(size)