Quick python reference for terminal color escape codes
Project description
clicolor
Quick python reference for terminal color escape codes
Usage
Install options:
-
Install the package
clicolor
-
Add as a submodule
git submodule add https://github.com/camas/clicolors
- Or just copy
cli.py
andLICENSE
somewhere
Then from clicolor.cli import CLI, ...
Examples
print(f"{CLI.BG_YELLOW}{CLI.GREEN}Green on yellow.{CLI.RESET}")
print(f"{CLI.BOLD}{CLI.RED}Bold red.{CLI.RESET}")
print(f"{CLIT.bg(128,0,0)}{CLIT.fg(255,99,71)}Truecolor tomato red on maroon red background{CLI.RESET}")
test.py
use test.py to run a variety of tests including modifiers, 8/16 colors, 256 colors and Truecolors.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clicolor-1.0.3.tar.gz
(5.7 kB
view hashes)