added platform independent screen clear function

main
Calum Andrew Morrell 2024-08-27 17:26:37 +01:00
parent c6716a3029
commit ae1304e929
1 changed files with 6 additions and 0 deletions

6
dg_clt/screen.py Normal file
View File

@ -0,0 +1,6 @@
import os
import subprocess
def clear():
subprocess.call('clear' if os.name == 'posix' else 'cls')