demo/demo_ansicolor.py
author Radek Brich <radek.brich@devl.cz>
Mon, 19 Aug 2013 14:17:09 +0200
changeset 8 c7ae4d2e820c
parent 5 055f7dfb3e4f
permissions -rwxr-xr-x
Update setup: Adjust package name for RPMs by prepending "python3-" prefix.

#!/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()