def prevFgColor(self):
        """ switch to prev fg color, cycle around to end if at beginning """
        if self.colorfg > 1:
            newColor = self.colorfg - 1
        else:
            if self.appState.colorMode == "16":
                if self.appState.iceColors:
                    newColor = 15
                else:
                    newColor = 16
            elif self.appState.colorMode == "256":
                newColor = 255
            else:
                newColor = 16   # default to 16 color
        self.setFgColor(newColor)
        #if self.appState.colorMode == "256":
        #    self.statusBar.colorPicker.handler.updateFgPicker()
        self.statusBar.colorPicker.handler.updateFgPicker()
 switch to prev fg color, cycle around to end if at beginning 
durdraw/durdraw_ui_curses.py