Python wrapper for loading Jason Hood's ANSICON
Project description
Overview
ansicon is a Python wrapper for loading Jason Hood’s ANSICON
Installation
$ pip install ansicon
Usage
import ansicon
# Load ansicon
ansicon.load()
# Have fun with terminal codes
print(u'\x1b[32mGreen\x1b[m')
# Unload ansicon
ansicon.unload()
# Check if ansicon is loaded
if not ansicon.loaded():
ansicon.load()
if ansicon.loaded():
ansicon.unload()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ansicon-1.88.0.tar.gz
(67.5 kB
view hashes)