diff cmd2.py @ 271:fd40eca6939a

colors
author Catherine Devlin <catherine.devlin@gmail.com>
date Thu, 09 Apr 2009 00:15:33 -0400
parents 194160b7f091
children fd5197498667
line wrap: on
line diff
--- a/cmd2.py	Wed Apr 08 18:27:46 2009 -0400
+++ b/cmd2.py	Thu Apr 09 00:15:33 2009 -0400
@@ -319,6 +319,7 @@
         
     def __init__(self, *args, **kwargs):        
         cmd.Cmd.__init__(self, *args, **kwargs)
+        self.initial_stdout = sys.stdout
         self.history = History()
         self._init_parser()
         self.pystate = {}