Added clear_screen()
This commit is contained in:
parent
dd20cdd36e
commit
e136283a71
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue