Skip to content

Overview

Build status Language grade: Python Coverage status Documentation status PyPI version

ChromaTerm is a utility for coloring output meant for terminals. You can interact with it using a command line script and through an API.

Command Line Script

Included with ChromaTerm is a command line script, called ct, that can be used to color the output of your programs according to user-configurable rules. You can use the script to consistently highlight keywords across different programs.

Think of ct like grep; just pipe data into it. It even works with interactive applications, like ssh.


API

If you have a Python module the output of which is meant for terminals, you may be interested in extending it through ChromaTerm's API to highlight significant output.


Note

Regarding Windows support:

  • The command line script supports the Windows Subsystem for Linux (WSL), but not cmd nor PowerShell.
  • The API supports cmd and PowerShell – in addition to WSL – since Windows 10 version 1511 (released on 2015/11/12, build 10.0.10586).