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

Method show_cursor

rich/console.py:1190–1199  ·  view source on GitHub ↗

Show or hide the cursor. Args: show (bool, optional): Set visibility of the cursor.

(self, show: bool = True)

Source from the content-addressed store, hash-verified

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.

Callers 3

test_show_cursorFunction · 0.95
__enter__Method · 0.45
__exit__Method · 0.45

Calls 1

controlMethod · 0.95

Tested by 1

test_show_cursorFunction · 0.76