changeset 5 | 055f7dfb3e4f |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demo/demo_ansicolor.py Sat Apr 13 15:24:47 2013 +0200 @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 + +from pycolib.ansicolor import highlight, names + + +def print_colors(): + for c in range(0,8): + print( + highlight(1,c), names[c].ljust(20), + highlight(1,8+c), names[c].ljust(20), + highlight(0), sep='') + +if __name__ == '__main__': + print_colors()