[issue43432] Add function `clear` to the `os` module

Serhiy Storchaka report at bugs.python.org
Mon Mar 8 13:12:38 EST 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

If you write a flexible Text ui program, you should use functions provided by a text ui library which you use to clear the screen or a part of screen.

If you want to call an external command, use os.system(), os.popen() or more flexible subprocess module. But I do not think it will help with Text UI.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43432>
_______________________________________


More information about the Python-bugs-list mailing list