summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorErik Rose <erik@mozilla.com>2011-11-29 00:23:22 -0800
committerErik Rose <erik@mozilla.com>2011-11-29 00:25:36 -0800
commitcd8fbd9d04db72aa74c33647730c142eda92286e (patch)
tree3f22c67cb71fe5f04724cf29352ccfba6b448da1 /README.rst
parent1636543bdaaa11cc27f6fb06a6787c7145860544 (diff)
downloadblessings-cd8fbd9d04db72aa74c33647730c142eda92286e.tar.gz
Make `color(n)` callable to wrap a string, like the named colors can. Bump version to 1.3. Closes #12.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 8c6ab45..3840cda 100644
--- a/README.rst
+++ b/README.rst
@@ -174,6 +174,9 @@ There is also a numerical interface to colors, which takes integers from 0-15::
term.color(5) + 'Hello' + term.normal
term.on_color(3) + 'Hello' + term.normal
+ term.color(5)('Hello')
+ term.on_color(3)('Hello')
+
Compound Formatting
-------------------
@@ -330,6 +333,11 @@ Blessings is under the MIT License. See the LICENSE file.
Version History
===============
+1.3
+ * Made ``color(n)`` and ``on_color(n)`` callable to wrap a string, like the
+ named colors can. Also, make them both fall back to the ``setf`` and ``setb``
+ capabilities if the ANSI ``setaf`` and ``setab`` aren't available.
+
1.2
* Added support for Python 3! We need 3.2.3 or greater, because the curses
library couldn't decide whether to accept strs or bytes before that