def sprint(text, *colors):
 return ('\x1b[{}m{content}\x1b[{}m'.format(';'.join([str(color) for color in colors]), RESET, content=text) if (IS_ANSI_TERMINAL and colors) else text)

def sprint ( text , * colors ) : return ( '\x1b[{}m{content}\x1b[{}m' . format ( ';' . join ( [ str ( color ) for color in colors ] ) , RESET , content = text ) if ( IS_ANSI_TERMINAL and colors ) else text )
format text with color or other effects into ansi escaped string .