MCPcopy Index your code
hub / github.com/python/cpython / clear

Method clear

Lib/_pyrepl/windows_console.py:497–501  ·  view source on GitHub ↗

Wipe the screen

(self)

Source from the content-addressed store, hash-verified

495 self.__write("\x07")
496
497 def clear(self) -> None:
498 """Wipe the screen"""
499 self.__write(CLEAR)
500 self.posxy = 0, 0
501 self.screen = []
502
503 def finish(self) -> None:
504 """Move the cursor to the end of the display and otherwise get

Callers

nothing calls this directly

Calls 1

__writeMethod · 0.95

Tested by

no test coverage detected