Method: rich.console.Console.screen
Calls: 5, Exceptions: 0, Paths: 1Back
Path 1: 5 calls (1.0)
True (5)
None (5)
ScreenContext (5)
1def screen(
2 self, hide_cursor: bool = True, style: Optional[StyleType] = None
3 ) -> "ScreenContext":
4 """Context manager to enable and disable 'alternative screen' mode.
5
6 Args:
7 hide_cursor (bool, optional): Also hide the cursor. Defaults to False.
8 style (Style, optional): Optional style for screen. Defaults to None.
9
10 Returns:
11 ~ScreenContext: Context which enables alternate screen on enter, and disables it on exit.
12 """
13 return ScreenContext(self, hide_cursor=hide_cursor, style=style or "")