MCPcopy Index your code
hub / github.com/python/cpython / set_cursor_vis

Method set_cursor_vis

Lib/_pyrepl/unix_console.py:449–459  ·  view source on GitHub ↗

Set the visibility of the cursor. Parameters: - visible (bool): Visibility flag.

(self, visible)

Source from the content-addressed store, hash-verified

447 )
448
449 def set_cursor_vis(self, visible):
450 """
451 Set the visibility of the cursor.
452
453 Parameters:
454 - visible (bool): Visibility flag.
455 """
456 if visible:
457 self.__show_cursor()
458 else:
459 self.__hide_cursor()
460
461 if TIOCGWINSZ:
462

Callers

nothing calls this directly

Calls 2

__show_cursorMethod · 0.95
__hide_cursorMethod · 0.95

Tested by

no test coverage detected