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

Method clear

Lib/_pyrepl/unix_console.py:578–586  ·  view source on GitHub ↗

Clear the console screen.

(self)

Source from the content-addressed store, hash-verified

576 return e
577
578 def clear(self):
579 """
580 Clear the console screen.
581 """
582 self.__write_code(self._clear)
583 self.__gone_tall = 1
584 self.__move = self.__move_tall
585 self.posxy = 0, 0
586 self.screen = []
587
588 @property
589 def input_hook(self):

Callers

nothing calls this directly

Calls 1

__write_codeMethod · 0.95

Tested by

no test coverage detected