Upload files to "Modules/All_Pages"
This commit is contained in:
9
Modules/All_Pages/clear_screen.py
Normal file
9
Modules/All_Pages/clear_screen.py
Normal file
@ -0,0 +1,9 @@
|
||||
import os
|
||||
import platform
|
||||
|
||||
def clear_screen():
|
||||
# Check the system platform and use the appropriate command
|
||||
if platform.system().lower() == "windows":
|
||||
os.system('cls') # Windows command to clear the screen
|
||||
else:
|
||||
os.system('clear') # Unix-based (Linux/macOS) command to clear the screen
|
Reference in New Issue
Block a user