def prevBgColor(self):
        """ switch to prev bg color, cycle around to end if at beginning """
        if self.appState.colorMode == "256":
            lowColor = 0
            #hiColor = 255
            hiColor = 0
            if self.colorbg > lowColor:
                newColor = self.colorbg - 1
            else:
                newColor = hiColor
            self.setBgColor(newColor)
        else:
            if self.appState.iceColors:
                lowColor = 0
                hiColor = 15
            else:
                lowColor = 1
                hiColor = 8
            if self.colorbg > lowColor:
                newColor = self.colorbg - 1
                #if self.colorfg == 7 and self.colorbg == 7 or self.colorfg == 15 and self.colorbg == 7:  # skip over red on red
                #    newColor = self.colorbg - 1
            else:
                newColor = hiColor
            self.setBgColor(newColor)
 switch to prev bg color, cycle around to end if at beginning 
durdraw/durdraw_ui_curses.py