diff options
author | Erik Rose <erik@mozilla.com> | 2011-11-07 10:34:28 -0800 |
---|---|---|
committer | Erik Rose <erik@mozilla.com> | 2011-11-07 10:34:28 -0800 |
commit | fdfd1dac35f0e3912d1398e37fc9881a412fdea8 (patch) | |
tree | a0629930ccfe4308a8df901b52a4de84030274d5 /README.rst | |
parent | 08ac25ba28162ba68256dc6b6a47afa9af080c3c (diff) | |
download | blessings-fdfd1dac35f0e3912d1398e37fc9881a412fdea8.tar.gz |
Oops, some occurrences of "terminator" escaped genocide.
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -52,7 +52,7 @@ underlined text at the bottom of the screen:: Phew! That was long and full of incomprehensible trash! Let's try it again, this time with Blessings:: - from terminator import Terminal + from blessings import Terminal term = Terminal() with term.location(0, term.height): @@ -78,7 +78,7 @@ Simple Formatting Lots of handy formatting codes ("capabilities" in low-level parlance) are available as attributes on ``Terminal`` instances. For example:: - from terminator import Terminal + from blessings import Terminal term = Terminal() print 'I am ' + term.bold + 'bold' + term.normal + '!' @@ -115,7 +115,7 @@ Some capabilities take parameters. Rather than making you dig up ``tparm()`` all the time, we simply make such capabilities into callable strings. You can pass the parameters right in:: - from terminator import Terminal + from blessings import Terminal term = Terminal() print 'I am ' + term.color(2) + 'green' + term.normal + '!' @@ -135,7 +135,7 @@ Height and Width It's simple to get the height and width of the terminal, in characters:: - from terminator import Terminal + from blessings import Terminal term = Terminal() height = term.height @@ -151,7 +151,7 @@ Sometimes you need to flit to a certain location, print something, and then return: for example, when updating a progress bar at the bottom of the screen. ``Terminal`` provides a context manager for doing this concisely:: - from terminator import Terminal + from blessings import Terminal term = Terminal() with term.location(0, term.height): @@ -181,7 +181,7 @@ Future Plans Bugs or suggestions? Visit the `issue tracker`_. -.. _`issue tracker`: https://github.com/erikrose/terminator/issues/new +.. _`issue tracker`: https://github.com/erikrose/blessings/issues/new Version History =============== |