MCPcopy
hub / github.com/Textualize/textual / _pause_blink

Method _pause_blink

src/textual/widgets/_text_area.py:1942–1946  ·  view source on GitHub ↗

Pause the cursor blinking but ensure it stays visible.

(self, visible: bool = True)

Source from the content-addressed store, hash-verified

1940 self.blink_timer.reset()
1941
1942 def _pause_blink(self, visible: bool = True) -> None:
1943 """Pause the cursor blinking but ensure it stays visible."""
1944 self._cursor_visible = visible
1945 if self.is_mounted:
1946 self.blink_timer.pause()
1947
1948 async def _on_mouse_down(self, event: events.MouseDown) -> None:
1949 """Update the cursor position, and begin a selection using the mouse."""

Callers 3

_watch_has_focusMethod · 0.95
_watch_cursor_blinkMethod · 0.95
_on_mouse_downMethod · 0.95

Calls 1

pauseMethod · 0.45

Tested by

no test coverage detected