Use clear command on Cygwin
This commit is contained in:
parent
a177ea251d
commit
e3eecb0336
2
a2tm.py
2
a2tm.py
|
@ -30,7 +30,7 @@ if sys.version_info<(3,0):
|
||||||
#Function to clear screen
|
#Function to clear screen
|
||||||
def ClearScreen():
|
def ClearScreen():
|
||||||
if sys.platform == "cygwin":
|
if sys.platform == "cygwin":
|
||||||
print (300 * "\n")
|
os.system("clear")
|
||||||
elif os.name == "posix":
|
elif os.name == "posix":
|
||||||
os.system("clear")
|
os.system("clear")
|
||||||
elif os.name == "nt":
|
elif os.name == "nt":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user