crayons
crayons copied to clipboard
Text UI colors for Python.
Hi, I recognized that crayons can't deal with string formatted with padding. Examples: ```python >>> import crayons >>> print("{:15}".format(crayons.red('NOTE:', bold=True))) Traceback (most recent call last): File "", line 1, in...
Issue #9 shows that ANSI escape sequences aren't detected when coloring strings, which leads to a `ColorString` formatted with another `ColorString` to lose its color information at the end. This...
Situations like this (or [here in pipenv](https://github.com/kennethreitz/pipenv/blob/dba68e00f4734d07881d51173c03c27089dc41af/pipenv/cli.py#L985)): ```python print(crayons.blue('horses, like {0}, eat grass too'.format(crayons.red('goats')))) ``` produce the following in Python 3.6.2: To me, the expectation is that embedded colored text...
if you're up for it!