def addColor(self, level, text):
if self.colorize:<EOL><INDENT>if level in self.colors:<EOL><INDENT>text = "<STR_LIT>" % (self.colors[level],<EOL>text,<EOL>self.colors["<STR_LIT>"])<EOL><DEDENT><DEDENT>return text<EOL>
addColor to the prompt (usually prefix) if terminal
        supports, and specified to do so