MCPcopy
hub / github.com/Textualize/rich / __enter__

Method __enter__

rich/console.py:432–436  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

430 self.console.print(self.screen, end="")
431
432 def __enter__(self) -> "ScreenContext":
433 self._changed = self.console.set_alt_screen(True)
434 if self._changed and self.hide_cursor:
435 self.console.show_cursor(False)
436 return self
437
438 def __exit__(
439 self,

Callers

nothing calls this directly

Calls 2

set_alt_screenMethod · 0.80
show_cursorMethod · 0.45

Tested by

no test coverage detected