def getColorCodeIrc(self, fg, bg):
        """ Return a string containing the IRC color code to color the next
        character, for given fg/bg """
        # references: https://www.mirc.com/colors.html
        # http://anti.teamidiot.de/static/nei/*/extended_mirc_color_proposal.html
        # map Durdraw -> IRC colors

        if self.appState.colorMode == '16':
            fg = color_16_to_mirc_16[fg]
            bg = color_16_to_mirc_16[bg]
        elif self.appState.colorMode == '256':
            fg = color_256_to_mirc_16[fg]
            bg = color_256_to_mirc_16[bg]
        #    fg = color_256_to_mirc_16[fg]
        #    bg = color_256_to_mirc_16[bg]

        return f'\x03{fg:02d},{bg:02d}'
 Return a string containing the IRC color code to color the next
        character, for given fg/bg 
durdraw/durdraw_color_curses.py