Mercurial > python-cmd2
diff cmd2.py @ 411:9d5ff2ddfdea 0.6.2
doc update
author | Catherine Devlin <catherine.devlin@gmail.com> |
---|---|
date | Tue, 09 Nov 2010 05:22:41 -0500 |
parents | 48ebbdfe9dd4 |
children | f16f444a4d10 |
line wrap: on
line diff
--- a/cmd2.py Mon Nov 08 08:49:32 2010 -0500 +++ b/cmd2.py Tue Nov 09 05:22:41 2010 -0500 @@ -440,7 +440,8 @@ special characters that turn on (and then off) text color and style. If the ``colors`` environment paramter is ``False``, or the application is running on Windows, will return ``val`` unchanged. - Available colors/styles: red/blue/green/cyan/magenta, bold, underline''' + ``color`` should be one of the supported strings (or styles): + red/blue/green/cyan/magenta, bold, underline''' if self.colors and (self.stdout == self.initial_stdout): return self.colorcodes[color][True] + val + self.colorcodes[color][False] return val