Skip to content
Myr

Merge pull request #288 from luw2007/luw2007-win-colorama-clear

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix clear() on win, colorama

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents 61de694, 7b1d403 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/termui.py+1 added-1 removed
295 unmodified lines
296 return297 # If we're on Windows and we don't have colorama available, then we298 # clear the screen by shelling out. Otherwise we can use an escape299 # sequence.300 if WIN and colorama is None:300 if WIN:301 os.system('cls')302 else:303 sys.stdout.write('\033[2J\033[1;1H')304
214 unmodified lines