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

Method screen

rich/console.py:1263–1275  ·  view source on GitHub ↗

Context manager to enable and disable 'alternative screen' mode. Args: hide_cursor (bool, optional): Also hide the cursor. Defaults to False. style (Style, optional): Optional style for screen. Defaults to None. Returns: ~ScreenContext: Context w

(
        self, hide_cursor: bool = True, style: Optional[StyleType] = None
    )

Source from the content-addressed store, hash-verified

1261 return False
1262
1263 def screen(
1264 self, hide_cursor: bool = True, style: Optional[StyleType] = None
1265 ) -> "ScreenContext":
1266 """Context manager to enable and disable 'alternative screen' mode.
1267
1268 Args:
1269 hide_cursor (bool, optional): Also hide the cursor. Defaults to False.
1270 style (Style, optional): Optional style for screen. Defaults to None.
1271
1272 Returns:
1273 ~ScreenContext: Context which enables alternate screen on enter, and disables it on exit.
1274 """
1275 return ScreenContext(self, hide_cursor=hide_cursor, style=style or "")
1276
1277 def measure(
1278 self, renderable: RenderableType, *, options: Optional[ConsoleOptions] = None

Callers 6

test_refresh_screenFunction · 0.95
test_screenFunction · 0.95
test_screen_updateFunction · 0.95
test_is_alt_screenFunction · 0.95
test_update_screenFunction · 0.95
screen.pyFile · 0.80

Calls 1

ScreenContextClass · 0.85

Tested by 5

test_refresh_screenFunction · 0.76
test_screenFunction · 0.76
test_screen_updateFunction · 0.76
test_is_alt_screenFunction · 0.76
test_update_screenFunction · 0.76