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