setExtendedFG()
setExtendedFG(void)
setExtendedFG(){	int fg = term->sgr_foreground;	if (term->screen.colorAttrMode	 || (fg < 0)) {		if (term->screen.colorULMode && (term->flags & UNDERLINE))			fg = COLOR_UL;		if (term->screen.colorBDMode && (term->flags & BOLD))			fg = COLOR_BD;		if (term->screen.colorBLMode && (term->flags & BLINK))			fg = COLOR_BL;	}	/* This implements the IBM PC-style convention of 8-colors, with one	 * bit for bold, thus mapping the 0-7 codes to 8-15.  It won't make	 * much sense for 16-color applications, but we keep it to retain	 * compatiblity with ANSI-color applications.	 */#if OPT_PC_COLORS	if (term->screen.boldColors	 && (fg >= 0)	 && (fg < 8)	 && (term->flags & BOLD))		fg |= 8;#endif	SGR_Foreground(fg);}