def color(string, status=True, warning=False, bold=True):
attr = []<EOL>if status:<EOL><INDENT>attr.append('<STR_LIT>')<EOL><DEDENT>if warning:<EOL><INDENT>attr.append('<STR_LIT>')<EOL><DEDENT>if bold:<EOL><INDENT>attr.append('<STR_LIT:1>')<EOL><DEDENT>return '<STR_LIT>' % ('<STR_LIT:;>'.join(attr), string)<EOL>
Change text color for the linux terminal, defaults to green.
Set "warning=True" for red.