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

Method clear

Lib/_pyrepl/unix_console.py:557–565  ·  view source on GitHub ↗

Clear the console screen.

(self)

Source from the content-addressed store, hash-verified

555 return e
556
557 def clear(self):
558 """
559 Clear the console screen.
560 """
561 self.__write_code(self._clear)
562 self.__gone_tall = 1
563 self.__move = self.__move_tall
564 self.posxy = 0, 0
565 self.screen = []
566
567 @property
568 def input_hook(self):

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected