from termcolor import colored
print('Sometimes I wonder, why all text in terminal is boring, like this one?')
print('Why it lacks {}?'.format(colored('color', 'green', attrs=['bold'])))
print('You know, on the other thought',
colored('color gives you so', 'green'),
colored('much', 'green', attrs=['bold']),
colored('possibilities', 'green')
)
print(
colored('Imagine', 'red'),
colored('you', 'green'),
colored('can', 'yellow'),
colored('paint', 'blue', attrs=['bold']),
colored('the', 'magenta'),
colored('world', 'cyan', attrs=['bold']),
)
print(
colored('And', 'red', attrs=['bold']),
colored('you', 'green', attrs=['dark']),
colored('can', 'yellow', attrs=['underline']),
colored('do', 'blue', attrs=['blink']),
colored('it', 'magenta', attrs=['reverse']),
colored('again)', 'cyan', attrs=['concealed']),
)
print(
colored('And', 'red', 'on_grey'),
colored('you', 'green', 'on_red'),
colored('can', 'blue', 'on_green'),
colored('do', 'blue', 'on_yellow'),
colored('it', 'white', 'on_blue'),
colored('again', 'cyan', 'on_magenta'),
)