hi, I am trying to display my output with different colour on terminal, but it's coming with that colour code. Please help me how is it possible?
my code is -
from fabric.colors import green, red, blue
def colorr():
a = red('This is red')
b = green('This is green')
c = blue('This is blue')
d = {a, b, c}
print d
colorr()
output -
set(['\x1b[32mThis is green\x1b[0m', '\x1b[34mThis is blue\x1b[0m',
'\x1b[31mThis is red\x1b[0m'])
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
