icolor 1.2

Interpolate ANSI colors in strings
icolor is a tool to print Python strings with interpolated colors.

Example:

>>> cformat("This is #RED;a red string.")
'This is \\x1b[31ma red string.\\x1b[0m'

>>> cformat("This is #BLUE;a blue string.", reset=False)
'This is \\x1b[34ma blue string.'


Also included is a cprint command, which as a convenience prints the result of the cformat call.

last updated on:
June 26th, 2012, 4:53 GMT
price:
FREE!
developed by:
Brian M Hunt
homepage:
github.com
license type:
MIT/X Consortium License 
category:
ROOT \ Terminals

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT