(self)
On some adapters, modify character attributes when clearing the scroll area.
On some adapters, modify character attributes when clearing the scroll area.
On some adapters modify character attributes when clearing the scroll area .
def _modify_attr_on_clear(self):
        """On some adapters, modify character attributes when clearing the scroll area."""
        if not self._tandytext:
            # keep background, set foreground to 7
            attr_save = self._attr
            self.set_attr(attr_save & 0x70 | 0x7)
            yield
            self.set_attr(attr_save)
        else:
            yield
def _modify_attr_on_clear ( self ) : if not self . _tandytext : # keep background, set foreground to 7 attr_save = self . _attr self . set_attr ( attr_save & 0x70 | 0x7 ) yield self . set_attr ( attr_save ) else : yield