def write(self, text, color):
        color = self._colors[color]
        self.stream.write('\x1b[%s;1m%s\x1b[0m' % (color, text))
Write the given text to the stream in the given color.
dataset/ETHPy150Open twisted/twisted/twisted/trial/reporter.py/_AnsiColorizer.write