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
)
| 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 |