Skip to main content

Quick python reference for terminal color escape codes

Project description


Quick python reference for terminal color escape codes


Install options:

  • Install the package

  • Add as a submodule

git submodule add
  • Or just copy and LICENSE somewhere

Then from clicolors.cli import CLI, ...


print(f"{CLI.BG_YELLOW}{CLI.GREEN}Green on yellow.{CLI.RESET}")

Green text on yellow background example

print(f"{CLI.BOLD}{CLI.RED}Bold red.{CLI.RESET}")

Bold red text example

print(f"{,0,0)}{CLIT.fg(255,99,71)}Truecolor tomato red on maroon red background{CLI.RESET}")

Truecolor red example

use 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.tar.gz (5.6 kB view hashes)

Uploaded source

Built Distribution

clicolor-1.0-py3-none-any.whl (6.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page