mirror of
https://github.com/kennethreitz/crayons.git
synced 2026-06-05 23:10:18 +00:00
v0.1.1
This commit is contained in:
+3
-1
@@ -8,13 +8,15 @@ Features
|
||||
--------
|
||||
|
||||
- If you call ``disable()``, all future calls to colors will be ignored.
|
||||
- If the current process is not in a TTY, no colors will be displayed.
|
||||
- If the current process is not in a TTY (e.g. being piped), no colors will be displayed.
|
||||
- Length of ColoredStrings can be properly calculated.
|
||||
- Powered by colorama.
|
||||
|
||||
Usage is simple
|
||||
---------------
|
||||
|
||||
::
|
||||
|
||||
# red is red, white is white.
|
||||
>>> print '{red} white'.format(red=crayons.red('red'))
|
||||
red white
|
||||
|
||||
Reference in New Issue
Block a user