ChromaTerm is a Python module and script used for coloring the output to terminals.
pip3 install chromaterm
You can pipe a program into ct
to have its output colored according to
user-configurable rules. For instance, ssh | ct
:
Check out the script's documentation for more details on usage.
You can color your module's output with ChromaTerm's API. Here's a simple example:
from chromaterm import Color
color = Color('bold')
# The string is bold-styled
color.print('Hello World!')
Have a look at the introduction for the API.
If you've got any questions or suggestions, please open up an issue (always appreciated).