Skip to content

Commit 6d1a7fa

Browse files
authored
fix: rich.console does not really work on windows
1 parent c149e49 commit 6d1a7fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
console = Console()
1010
def clear():
11+
if os.name == 'nt':
12+
os.system('cls')
13+
return
1114
global console
1215
for x in range(50):
1316
console.clear()

0 commit comments

Comments
 (0)