48
48
:param fgcolor: The foreground color to use
52
50
:param bgcolor: The background color to use
62
67
return "".join(("\033[", ';'.join(code), "m", text, "\033[0m"))
65
71
term = os.environ.get('TERM', '')
66
72
if term.startswith('xterm') or term == 'dtterm':