comparison docs/unfreefeatures.rst @ 411:9d5ff2ddfdea 0.6.2

doc update
author Catherine Devlin <catherine.devlin@gmail.com>
date Tue, 09 Nov 2010 05:22:41 -0500
parents 52ab96d4f179
children f16f444a4d10
comparison
equal deleted inserted replaced
410:48ebbdfe9dd4 411:9d5ff2ddfdea
182 ``self.poutput('output')``, ``self.pfeedback('message')``, and ``self.perror('errmsg')`` 182 ``self.poutput('output')``, ``self.pfeedback('message')``, and ``self.perror('errmsg')``
183 instead. These methods have these advantages: 183 instead. These methods have these advantages:
184 184
185 - More concise 185 - More concise
186 - ``.pfeedback()`` destination is controlled by :ref:`quiet` parameter. 186 - ``.pfeedback()`` destination is controlled by :ref:`quiet` parameter.
187 187
188 .. _quiet:
189
190 color 188 color
191 ===== 189 =====
192 190
193 .. automethod:: cmd2.Cmd.do_quit 191 Text output can be colored by wrapping it in the ``colorize`` method.
194 192
195 Quiet 193 .. automethod:: cmd2.Cmd.colorize
194
195 .. _quiet:
196
197 quiet
196 ===== 198 =====
197 199
198 Controls whether ``self.pfeedback('message')`` output is suppressed; 200 Controls whether ``self.pfeedback('message')`` output is suppressed;
199 useful for non-essential feedback that the user may not always want 201 useful for non-essential feedback that the user may not always want
200 to read. ``quiet`` is only relevant if 202 to read. ``quiet`` is only relevant if
201 ``app.pfeedback`` is sometimes used. 203 ``app.pfeedback`` is sometimes used.
202 204
203 ``select`` 205 ``select``
204 ========== 206 ==========
207
208 Presents numbered options to user, as bash ``select``.
205 209
206 ``app.select`` is called from within a method (not by the user directly; it is ``app.select``, not ``app.do_select``). 210 ``app.select`` is called from within a method (not by the user directly; it is ``app.select``, not ``app.do_select``).
207 211
208 .. automethod:: cmd2.Cmd.select 212 .. automethod:: cmd2.Cmd.select
209 213