def nextFgColor(self):
        """ switch to next fg color, cycle back to beginning at max """
        if self.appState.colorMode == "256":
            if self.colorfg < 255:
                newColor = self.colorfg + 1
            else:
                newColor = 1
        elif self.appState.colorMode == "16":
            if self.appState.iceColors:
                hiColor = 15
            else:
                hiColor = 16
            if self.colorfg < hiColor:
                newColor = self.colorfg + 1
            else:
                newColor = 1
        self.setFgColor(newColor)
        #if self.appState.colorMode == "256":
        self.statusBar.colorPicker.handler.updateFgPicker()
 switch to next fg color, cycle back to beginning at max 
durdraw/durdraw_ui_curses.py