@classmethod
def color_term_formatter(cls, string, *formatters):
    """Formats the string for a colored terminal."""
    for formatter in formatters:
        if formatter == 'red':
            string = ''.join(('\x1b[91m', string, '\x1b[0m'))
        elif formatter == 'green':
            string = ''.join(('\x1b[92m', string, '\x1b[0m'))
        elif formatter == 'yellow':
            string = ''.join(('\x1b[33m', string, '\x1b[0m'))
        elif formatter == 'blue':
            string = ''.join(('\x1b[94m', string, '\x1b[0m'))
        elif formatter == 'magenta':
            string = ''.join(('\x1b[95m', string, '\x1b[0m'))
        elif formatter == 'cyan':
            string = ''.join(('\x1b[96m', string, '\x1b[0m'))
        if formatter == 'bold':
            string = ''.join(('\x1b[1m', string, '\x1b[22m'))
        if formatter == 'underline':
            string = ''.join(('\x1b[4m', string, '\x1b[24m'))
    return string
