Files
clint/examples/colors_all.py
T
2012-01-06 00:11:51 +00:00

19 lines
333 B
Python
Executable File

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
from clint.textui import colored
text = 'THIS TEXT IS COLORED %s!'
if __name__ == '__main__':
for color in colored.COLORS:
print(getattr(colored, color)(text % color.upper()))