Fixed clear_screen() under Windows
This commit is contained in:
parent
4d6fad82db
commit
3d95d9c1a1
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ def choice(choices, prompt='答えろ!'):
|
|||
def clear_screen():
|
||||
"""Simple wrapper for clear/cls."""
|
||||
cmd = 'cls' if os.name == 'nt' else 'clear'
|
||||
subprocess.run(cmd, check=False, stderr=subprocess.PIPE)
|
||||
subprocess.run(cmd, check=False, shell=True, stderr=subprocess.PIPE)
|
||||
|
||||
|
||||
def format_exception_message(_exception, indent=INDENT, width=WIDTH):
|
||||
|
|
|
|||
Loading…
Reference in a new issue