(self)
Redraw bottom bar if visible, clear if not.
Redraw bottom bar if visible, clear if not.
Redraw bottom bar if visible clear if not .
def redraw_bar(self):
        """Redraw bottom bar if visible, clear if not."""
        key_row = self.mode.height
        # Keys will only be visible on the active page at which KEY ON was given,
        # and only deleted on page at which KEY OFF given.
        self._apage.clear_rows(key_row, key_row, self._attr)
        if not self.mode.is_text_mode:
            reverse_attr = self._attr
        elif (self._attr >> 4) & 0x7 == 0:
            reverse_attr = 0x70
        else:
            reverse_attr = 0x07
        if self._bottom_bar.visible:
            with self._apage.collect_updates():
                # always show only complete 8-character cells
                # this matters on pcjr/tandy width=20 mode
                for col in range((self.mode.width//8) * 8):
                    char, reverse = self._bottom_bar.get_char_reverse(col)
                    attr = reverse_attr if reverse else self._attr
                    self._apage.put_char_attr(key_row, col+1, char, attr)
            #self._move_cursor(self.current_row, self.current_col)
            self.set_row_length(self.mode.height, self.mode.width)
def redraw_bar ( self ) : key_row = self . mode . height # Keys will only be visible on the active page at which KEY ON was given, # and only deleted on page at which KEY OFF given. self . _apage . clear_rows ( key_row , key_row , self . _attr ) if not self . mode . is_text_mode : reverse_attr = self . _attr elif ( self . _attr >> 4 ) & 0x7 == 0 : reverse_attr = 0x70 else : reverse_attr = 0x07 if self . _bottom_bar . visible : with self . _apage . collect_updates ( ) : # always show only complete 8-character cells # this matters on pcjr/tandy width=20 mode for col in range ( ( self . mode . width // 8 ) * 8 ) : char , reverse = self . _bottom_bar . get_char_reverse ( col ) attr = reverse_attr if reverse else self . _attr self . _apage . put_char_attr ( key_row , col + 1 , char , attr ) #self._move_cursor(self.current_row, self.current_col) self . set_row_length ( self . mode . height , self . mode . width )