(self)
Set cursor visibility to its default state.
Set cursor visibility to its default state.
Set cursor visibility to its default state .
def _set_visibility(self):
        """Set cursor visibility to its default state."""
        visible = self._active and (
            self._direct or self._override or (
                self._textmode_override and self._mode.is_text_mode
            )
        )
        if self._visible != visible:
            self._visible = visible
            if visible:
                # update position, attribute and shape
                self._queues.video.put(signals.Event(
                    signals.VIDEO_MOVE_CURSOR, (self._row, self._col, self._fore_attr, self._width)
                ))
            # show or hide the cursor and set blink
            self._queues.video.put(signals.Event(
                signals.VIDEO_SHOW_CURSOR, (visible, self._mode.is_text_mode)
            ))
def _set_visibility ( self ) : visible = self . _active and ( self . _direct or self . _override or ( self . _textmode_override and self . _mode . is_text_mode ) ) if self . _visible != visible : self . _visible = visible if visible : # update position, attribute and shape self . _queues . video . put ( signals . Event ( signals . VIDEO_MOVE_CURSOR , ( self . _row , self . _col , self . _fore_attr , self . _width ) ) ) # show or hide the cursor and set blink self . _queues . video . put ( signals . Event ( signals . VIDEO_SHOW_CURSOR , ( visible , self . _mode . is_text_mode ) ) )