Termcolor Shorthand Functions
Termcolor Cheatsheet Functions. Shorthand functions for printing in color.
All printing is done with (,end='')
so chr(10)
mult be appended or prepended.
Requires Termcolor - https://github.com/termcolor/termcolor
Termcolor - PyPi - https://pypi.org/project/termcolor/
pip install termcolor
Download tc_shorthand.py
wget https://raw.githubusercontent.com/Daemon0ps/Termcolor-Shorthand-Functions/main/tc_shorthand.py
import requests
from io import BytesIO
with requests.Session() as s:
fb = BytesIO(s.get("https://raw.githubusercontent.com/Daemon0ps/Termcolor-Shorthand-Functions/main/tc_shorthand.py").content)
with open("e:/tc_shorthand.py", "wb") as fi:
fi.write(fb.read())
https://raw.githubusercontent.com/Daemon0ps/Termcolor-Shorthand-Functions/main/tc_shorthand.py
from tc_shorthand import *
1. tc_lamnbda_contructor.py
This is what I used to parse the former tc_lambda_old.py
module that I was using for shorthand Termcolor functions. This was mostly just for fun/practice with various string manipulations / algorithmic logic
2. tc_lambda_old.py
The old functions/lambdas
3. ttc_github_readme_constructors.py
Script to capture the color/font images, and format the table below.
https://github.com/termcolor/termcolor
Example Images were generated in a Windows Powershell Terminal with the Vintage
Color Scheme and JetBrains Mono
font.
_bklf:
Black on Black + chr(10)