# HG changeset patch # User catherine@Drou # Date 1266356027 18000 # Node ID 432ccab7c6c8da08ed2d3a255bd9579d0d38ed77 # Parent 49dd1ce6cfd67818bddd149cc00a1c731b508eee going to try moving output redirection to outside precmd, postcmd hooks diff -r 49dd1ce6cfd6 -r 432ccab7c6c8 cmd2.py --- a/cmd2.py Tue Feb 16 15:47:17 2010 -0500 +++ b/cmd2.py Tue Feb 16 16:33:47 2010 -0500 @@ -759,6 +759,8 @@ This (`cmd2`) version of `onecmd` already override's `cmd`'s `onecmd`. """ + # TODO: output from precmd and postcmd goes untrapped... and I don't + # know how to fix it... if not line: return self.emptyline() if not pyparsing.Or(self.commentGrammars).setParseAction(lambda x: '').transformString(line): diff -r 49dd1ce6cfd6 -r 432ccab7c6c8 docs/pycon2010/pycon2010.rst --- a/docs/pycon2010/pycon2010.rst Tue Feb 16 15:47:17 2010 -0500 +++ b/docs/pycon2010/pycon2010.rst Tue Feb 16 16:33:47 2010 -0500 @@ -198,27 +198,48 @@ Third-party module in PyPI -What you get -============ +Absolutely free +=============== * Script files * Commands at invocation * Output redirection * Python * Transcript-based testing + +But wait, there's more +====================== + + * Abbreviated commands + * Shell commands + * Quitting + * Timing + * Echo + * Debug - * Searchable command history - * Quitting the application - * Comments - * Misc. pre-defined commands +For a few keystrokes more... +============================ + + * Default to shell + * Color output + * Shortcuts + +But wait, there's more +====================== + + * Case-insensitive commands + * Abbreviated commands + * Quitting + * Timing + * Echo + * Debug + * Color output + More ==== * Case-insensitivity - * Shortcuts + * One-character shortcuts * Default to shell - * Timing - * Echo - * Debug - * Other user-settable parameters + \ No newline at end of file