Convenient print function overwritten with terminal color specifications for Python 2.* and 3.* both.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ColorPrint.py
README.md

README.md

Python-Color-Print

Convenient print function overwritten with terminal color specifications for Python 3.

Usage

from ColorPrint import print

print('Hello World!')  # default printing

print('Hello World!', 'r')  # color abbreviation
print('Hello World!', 'c')

print('Hello World!', 'red')  # color full names
print('Hello World!', 'cyan')

print('Hello World!', 'rand')  # random color
print('Hello World!', 'random')

print('Hello World!', 'discrete_random')  # random color for each character
print('Hello World!', 'drand')

and the output is as below (in Terminal):