Show or hide the cursor. Args: show (bool, optional): Set visibility of the cursor.
(self, show: bool = True)
| 1188 | return status_renderable |
| 1189 | |
| 1190 | def show_cursor(self, show: bool = True) -> bool: |
| 1191 | """Show or hide the cursor. |
| 1192 | |
| 1193 | Args: |
| 1194 | show (bool, optional): Set visibility of the cursor. |
| 1195 | """ |
| 1196 | if self.is_terminal: |
| 1197 | self.control(Control.show_cursor(show)) |
| 1198 | return True |
| 1199 | return False |
| 1200 | |
| 1201 | def set_alt_screen(self, enable: bool = True) -> bool: |
| 1202 | """Enables alternative screen mode. |