MCPcopy Index your code
hub / github.com/RustPython/RustPython / clear

Method clear

Lib/_pyrepl/windows_console.py:445–449  ·  view source on GitHub ↗

Wipe the screen

(self)

Source from the content-addressed store, hash-verified

443 self.__write("\x07")
444
445 def clear(self) -> None:
446 """Wipe the screen"""
447 self.__write(CLEAR)
448 self.posxy = 0, 0
449 self.screen = [""]
450
451 def finish(self) -> None:
452 """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